async-la / bzz.network

Configuration and documentation for deploying & managing bzz.network
0 stars 0 forks source link

[swarm] add swarm-0 as a bootnode for new pods #7

Open cjcaj opened 6 years ago

christopherdro commented 6 years ago

I'm wondering if we can investigate what it'll take to have a script execute on each pod boot that stores the enode of that pod somewhere where we can reference.

cjcaj commented 6 years ago

There are container lifecycle hooks that we can use to get the enode and write it to efs. https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/

It runs the command when the container is created so we'll need to make sure that swarm is running.

cjcaj commented 6 years ago

Note: create a service for swarm-0 using statefulset.kubernetes.io/pod-name in k8s v1.9.

christopherdro commented 6 years ago

@cjcaj 1.9 alpha is out maybe we can try and use that? Also, is there a way we can start monitoring requests to bzz.betwork?

cjcaj commented 6 years ago

I'm worried that we'll have to recreate the cluster if the update fails somehow. I'll try to see if we can set up the bootnode another way using stable ids.

Regarding monitoring requests, we have this for hma image Is this what you had in mind?

christopherdro commented 6 years ago

Yea something like that for bzz.network would be great.

cjcaj commented 6 years ago

Adding links to kops issues concerning upgrade to 1.9 https://github.com/kubernetes/kops/issues/5002 https://github.com/kubernetes/kops/issues/4986

cjcaj commented 6 years ago

NGINX metrics are up. Here's a link to our wiki on how to access it https://github.com/async-la/bzz.network/wiki/NGINX-VTS-Metrics

image

christopherdro commented 6 years ago

These new options on POC3 look interesting

  --metrics                                           Enable metrics collection and reporting
   --metrics.influxdb.export                           Enable metrics export/push to an external InfluxDB database
   --metrics.influxdb.endpoint value                   Metrics InfluxDB endpoint (default: "http://127.0.0.1:8086")
   --metrics.influxdb.database value                   Metrics InfluxDB database (default: "metrics")
   --metrics.influxdb.username value                   Metrics InfluxDB username
   --metrics.influxdb.password value                   Metrics InfluxDB password
   --metrics.influxdb.host.tag host                    Metrics InfluxDB host tag attached to all measurements (default: "localhost")