Skip to content

Latest commit

 

History

History
64 lines (52 loc) · 2.09 KB

demo_etcd_shards.md

File metadata and controls

64 lines (52 loc) · 2.09 KB

Panoptes Shards / Cluster with etcd demonstration


Panoptes configuration: etcd Service discovery: etcd

You can see this demo through http://localhost:3000 in real time once you turned the demo up. The grafana dashboard username is panoptes and password is panoptes This demo included 7 containers as follow:

  • Two Panoptes nodes
  • Panoptes gNMI simulator
  • etcd
  • Grafana
  • InfluxDB
  • Prometheus

The devices (5x simulated juniper devices) assigned to node-1 and node-2 automatically through auto sharding. it works based the hashing and modulo operation. you can see the configuration through command line (etcdctl)

panoptes consul demo

Checkout GitHub

git checkout github.com/yahoo/panoptes-stream
cd panoptes-stream/scripts/demo_shards

Start the containers

docker-compose -f docker-compose.etcd.yml up -d

panoptes consul demo

docker-compose -f docker-compose.etcd.yml ps

panoptes consul demo

http://localhost:3000 Panoptes Sharding Status

panoptes consul demo

Stop second node

docker stop panoptes-node2

The node one will take over the device[2 & 4].lax in less than a minute. panoptes consul demo panoptes consul demo

Start second node

docker start panoptes-node2

http://localhost:3000 Panoptes Sharding Status

panoptes consul demo

http://localhost:3000 Panoptes Sharding Demo panoptes consul demo

Clean up

docker-compose -f docker-compose.etcd.yml down

All demonstrations Please check out the demo page to see all of the demonstrations for different scenarios.