From 89d27cb436274efea0f425cc22384306339a384c Mon Sep 17 00:00:00 2001 From: Emile Date: Sat, 23 Feb 2019 20:36:18 +0100 Subject: :art: updated the design once again --- src/.main.go.swp | Bin 12288 -> 0 bytes src/go.mod | 1 + src/index.html | 401 ++++++++++++++++++++++++++++++------------------------ src/main.go | 2 +- src/redesign.html | 250 ---------------------------------- 5 files changed, 225 insertions(+), 429 deletions(-) delete mode 100644 src/.main.go.swp create mode 100644 src/go.mod delete mode 100644 src/redesign.html (limited to 'src') diff --git a/src/.main.go.swp b/src/.main.go.swp deleted file mode 100644 index bd222ac..0000000 Binary files a/src/.main.go.swp and /dev/null differ diff --git a/src/go.mod b/src/go.mod new file mode 100644 index 0000000..489c84a --- /dev/null +++ b/src/go.mod @@ -0,0 +1 @@ +module frontpage diff --git a/src/index.html b/src/index.html index 730920c..5d6a1d0 100644 --- a/src/index.html +++ b/src/index.html @@ -1,208 +1,253 @@ - + - - - - + + + + - Galaxy Simulator + Galaxy Simulator - - + - - + + - + + + - + - - - - -
- -
-
- -
- -
-

Generation and Simulation

-

Generating star clusters and simulating the forces acting in them seemed like a good way to learn a lot of new programming concepts. You can find many of the results on this page and read the blogpost I update regularly by clicking on the button below.

- Read the Blogpost! -
- -
- -
- -
- -
-
-
What is this all?
-

How did this all begin? How are the star clusters simulated? How is the simulation so fast? Where can I learn more about this? Who are Julio Navarro, Carlos Frenk, Simon White, Josh Barnes and Piet Hut?

-
- -
- -
-
-

A galaxy is a gravitationally bound system of stars, stellar remnants, interstellar gas, dust, and dark matter.

-
- - Wikipedia - -
-
-
- -
-
-
Writeup
-

I wrote a writeup for people who want to implement this or just want to dive deeper into the rabbit hole. It contains the process of generating the star clusters and how the simulation efficiency can be increased alot.

-
- -
- -
-
-
Code
-

The complete project is currently split up into multiple docker containers representing a micro-service each. It is currently stored in git and is always happy if new post-request are made!

-
- -
- -
-
-
Generating
-

The Generator container generates stars using NFW containers. This makes it incredibly fast, because it is not bound to a machine, but can operate on a giant cluster.

-
- +
+
+
+
+ +
+ +
+ +
+
+ +
+
+ + -
-
-
Database
-

The current "Database" is a go array containing the galaxy stored in the form of a tree. This is not optimal, but it works and I'm working on a more scalable solution.

-
- -
-
-
-
Manager
-

The manager manages distributing stars to the simulator containers, it also collects the metrics from the Simulator containers and functions as a target for prometheus.

-
- +
+
+ +
+ +
+

Generation and Simulation

+

Generating star clusters and simulating the forces acting in them seemed like a good way to learn a lot of new programming concepts. You can find many of the results on this page and read the blogpost I update regularly by clicking on the button below.

+ Read the Blogpost! +
+
-
-
-
Simulator
-

The simulator container get's stars from the manager and calculates the forces acting on it. It then inserts the new star into the database.

-
- + +
+
+
+
+ Documentation +

+ Writeup +

+
Feb 3 2019
+

The complete project is documented so that everybody can access + and use it a a reference for other projects.

+ Read the writeup +
+ +
+
+
+
+
+ Tech +

+ Code +

+
Feb 3 2019
+

The simulator is completely writting in + go and can be found in the git. +

+ Read the code +
+ +
+
-
-
-
Traefik
-

Traefik ist used as a reverse proxy for some services such as the generator container. It also allows a lot of other services to work.

-
- + +
+
+
+
+ Tech +

+ Generator +

+
Feb 3 2019
+

+ The generator generates stars using the NFW profile. +

+ Read the code +
+ +
+
+
+
+
+ Storage +

+ Database +

+
Feb 3 2019
+

A PostgreSQL + database is used to store the stars. +

+ Read the code +
+ +
+
-
-
-
Monitoring
-

Monitoring is done by combining the power of Prometheus and Grafana using the other containers as targets to pull metrics from.

-
- + +
+
+
+
+ Tech +

+ Manager +

+
Feb 3 2019
+

+ The manager container distributes the stars that need to be processed by providing them + to the simulation services. +

+ Read the code +
+ +
+
+
+
+
+ Tech +

+ Simulator +

+
Feb 3 2019
+

+ The simulator continer gets stars from the manager, calculates their new position + and inserts them into the next timestep. +

+ Read the code +
+ +
+
-
-
-
Viewer
-

Viewing the galaxies that were generated in the form of scalable vector graphics

-
- + +
+
+
+
+ Load balancing +

+ Traefik +

+
Feb 3 2019
+

+ Routing traffic is done using Traefik, + "A reverse proxy / load balancer that's easy, dynamic, automatic, fast [...]" +

+ Read the code +
+ +
+
+
+
+
+ Monitoring +

+ Grafana + Prometheus +

+
Feb 3 2019
+

+ The metrics are pushed to prometheus and displayed in a nice dashboard using grafana. +

+ Read the code +
+ +
+
-
-
-
Social Media
-

- -

-
+ +
+
+
+
+ Visualizing +

+ Manager +

+
Feb 3 2019
+

+ The manager container distributes the stars that need to be processed by providing them + to the simulation services. +

+ Read the code +
+ +
+
- -
-
- - - + - + diff --git a/src/main.go b/src/main.go index 0808608..9e01b74 100644 --- a/src/main.go +++ b/src/main.go @@ -3,5 +3,5 @@ package main import "net/http" func main() { - panic(http.ListenAndServe(":80", http.FileServer(http.Dir("./")))) + panic(http.ListenAndServe(":8081", http.FileServer(http.Dir("./")))) } diff --git a/src/redesign.html b/src/redesign.html deleted file mode 100644 index 86d9139..0000000 --- a/src/redesign.html +++ /dev/null @@ -1,250 +0,0 @@ - - - - - - - - - - - Galaxy Simulator - - - - - - - - - - - - - - -
-
-
-
-
- - - -
-
- -
-
- - - -
-
-

Generating and simulating star clusters

-

Generating Point clouds using the Random Sampling function on the Navarro Frenk - White profile for further simulation of the forces acting inbetween the stars.

-

Continue reading...

-
-
- - -
-
-
-
- Documentation -

- Writeup -

-
Feb 3 2019
-

The complete project is documented so that everybody can access - and use it a a reference for other projects.

- Read the writeup -
- -
-
-
-
-
- Tech -

- Code -

-
Feb 3 2019
-

The simulator is completely writting in - go and can be found in the git. -

- Read the code -
- -
-
-
- - -
-
-
-
- Tech -

- Generator -

-
Feb 3 2019
-

- The generator generates stars using the NFW profile. -

- Read the code -
- -
-
-
-
-
- Storage -

- Database -

-
Feb 3 2019
-

A PostgreSQL - database is used to store the stars. -

- Read the code -
- -
-
-
- - -
-
-
-
- Tech -

- Manager -

-
Feb 3 2019
-

- The manager container distributes the stars that need to be processed by providing them - to the simulation services. -

- Read the code -
- -
-
-
-
-
- Tech -

- Simulator -

-
Feb 3 2019
-

- The simulator continer gets stars from the manager, calculates their new position - and inserts them into the next timestep. -

- Read the code -
- -
-
-
- - -
-
-
-
- Load balancing -

- Traefik -

-
Feb 3 2019
-

- Routing traffic is done using Traefik, - "A reverse proxy / load balancer that's easy, dynamic, automatic, fast [...]" -

- Read the code -
- -
-
-
-
-
- Monitoring -

- Grafana + Prometheus -

-
Feb 3 2019
-

- The metrics are pushed to prometheus and displayed in a nice dashboard using grafana. -

- Read the code -
- -
-
-
- - -
-
-
-
- Visualizing -

- Manager -

-
Feb 3 2019
-

- The manager container distributes the stars that need to be processed by providing them - to the simulation services. -

- Read the code -
- -
-
-
-
- - - - - - - - -- cgit 1.4.1