+ All Categories
Home > Technology > DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

Date post: 14-Apr-2017
Category:
Upload: docker-inc
View: 7,652 times
Download: 0 times
Share this document with a friend
46
Finding a Theory of the Universe with Docker and Volunteer Computers Marius Millea Lagrange Postdoctoral Fellow Institut Lagrange de Paris
Transcript
Page 1: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

Finding a Theory of the Universe with Docker and Volunteer Computers

Marius MilleaLagrange Postdoctoral FellowInstitut Lagrange de Paris

Page 2: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

About Me

• I'm a cosmologist• ...but I've always been really into

computers• I work on analyzing data from a

satellite called Planck• I'm the main developer at

Cosmology@Home

Page 3: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

Thanks to...

Ben Wandelt Rom Walton Cam Boehmer

Original creator of Cosmology@Home

A BOINC developer Introduced me to Docker

...and many others

Page 4: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

• Cosmology@Home is a volunteer-based computer cluster

Active computers: (as of July 2015)

Page 5: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

• Our aim is to better understand our universe

(in particular the mass of the neutrino particle)

ServerVolunteersPossible universes

Page 6: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

Outline

• Measuring the mass of the neutrino particle with Planck

• Cosmology@Home and how Docker has helped

• Future Docker use at Cosmology@Home and in the field of physics in general

Page 7: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

Why the science?• Show you a definite

example of the type of calculations we do

• Give you a sense of their ever-changing nature

Page 8: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

“For the discovery of neutrino oscillations, which shows that neutrinos have mass”

So what is the mass?

Page 9: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

neutrinos

Created in nuclear power plants

Created in the sun

Created by the big bang

nasa.gov

wikipedia.org

Known particles

Page 10: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

● Neutrinos interact very weakly● Makes measuring their mass difficult

Neutrinos emitted from the sun, as seen through the earth Super-Kamiokande

Page 11: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

Source Detector

DetectorSourceBacklight

Page 12: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

The History of the Universe (backwards)

Page 13: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

The History of the Universe (forwards)

Page 14: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

The Planck satellite

Page 15: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers
Page 16: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers
Page 17: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers
Page 18: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

Cold (-270.3999˚C) Hot (-270.4001˚C)

Page 19: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

Cold (-270.3999˚C) Hot (-270.4001˚C)

Page 20: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

DetectorSourceBacklight

Page 21: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

Summary thus far

• We measure the distortion of the CMB due to neutrinos released from the big bang to infer the mass of the neutrino particle

• Our volunteer computers simulate different hypothetical universes with different neutrino masses to tell us how much distortion we would expect, then we compare to data

Page 22: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

Outline

• Measuring the mass of the neutrino particle with Planck

• Cosmology@Home and how Docker has helped

• Future Docker use at Cosmology@Home and in the field of physics in general

Page 23: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

From the user's POV

Page 24: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

z

http://www.cosmologyathome.org

Page 25: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

https://boinc.berkeley.edu

Page 26: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers
Page 27: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers
Page 28: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers
Page 29: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers
Page 30: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

From our POV

Page 31: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

Regular apps

• Compile executable for each platform• Either statically link or include all necessary libraries• Link against the BOINC libraries and manage user

requests for suspend/checkpoint/resume, etc…• BOINC takes care of sending it each host, running it, etc...

Page 32: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

Cosmology@Home computers

Page 33: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

VM apps

• Just create one VM image, works on all platforms• BOINC handles suspend/checkpoint/resume• Still some downsides

– Its clunky to create a VM image– New app version, user has to redownload whole thing?

Page 34: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

Cosmology@Home internet connections

Page 35: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

Docker apps

+Debian base image (~40Mb compressed)+our app (~3Mb compressed)

BOINC

BOINC Virtualbox wrapper

“boinc2docker” ISO

Docker container

handles pause/resumegenerally “BOINC things...”

lightly modified to interact with BOINC

Page 36: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

Persistence

Logging

Startup script

boot2docker ISO modifications

#!/bin/sh/etc/init.d/docker stoptar cf /root/scratch/boinc2docker_persistence.tar /var/lib/docker/*/etc/init.d/docker start

#!/bin/shdocker inspect $IMAGE || { docker pull $IMAGE && save_docker.sh; }docker run --rm -v /root/shared:/root/shared $IMAGE

via Virtualbox guest-logging, logs are uploaded to our DB

Page 37: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

What running jobs now looks like• Create the Docker image which runs my

calculation and push to Docker hub

docker build -t cosmohome/mytheory .docker push cosmohome/mytheory

...

FROM debian:wheezy

RUN apt-get update && \ apt-get -y install libgfortran3 libgomp1 && \ rm -rf /var/lib/apt/lists/*

COPY ["camb", "HighLExtrapTemplate_lenspotentialCls.dat", "/root/"]

Page 38: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

What running jobs now looks like

• Submit workunit on Cosmology@Home server pointing to my image

./create_work --app boinc2docker \ boinc_app \ params

e.g. neutrino mass = X...

A short script like you saw before which does adocker run cosmohome/mytheory

Page 39: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

End result• Its easy!• I can spend my time being a physicist,

not a programmer

Previously

Planck

Page 40: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

Outline

• Measuring the mass of the neutrino particle with Planck

• Cosmology@Home and how Docker has helped

• Future Docker use at Cosmology@Home and in the field of physics in general

Page 41: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

Docker and volunteer computing

Page 42: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

“BOINC is the #5 super-computer in the world. What if

it ran Docker?”

42

Page 43: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

Docker and volunteer computing

Cosmology@Home:• “Higher fidelity” simulations of the universe

Generally:• An “IPython Parallel”-like interface to BOINC• “Service to scientists”• Swarm, Tutum..?

Page 44: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

• From the top: the most computer savvy physicists know of and may use Docker

• From the grassroots: more work needed– Good news: physicists develop, ship, and

modify code– Docker and MPI (e.g. see “Shifter” at NERSC)

Docker and scientific computing

Page 45: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

Summary

• Cosmology@Home, a cluster of volunteer computers, now runs Docker

• Docker allows us to spend our time being physicists

• If anyone is looking for open source projects to contribute to, we welcome helpers, find me or our github.com/marius311/cosmohome

Page 46: DockerCon EU 2015: Finding a Theory of the Universe with Docker and Volunteer Computers

Thank you!Marius [email protected]


Recommended