OriginProtocol / dshop

Origin Dshop - launch your own decentralized store
https://www.originprotocol.com/dshop
MIT License
138 stars 87 forks source link

Add health probe for IPFS nodes #383

Open mikeshultz opened 4 years ago

mikeshultz commented 4 years ago

Add a startup and health probe for IPFS nodes so kubernetes doesn't add pods to the service before they're ready to serve requests. Could load the "hello worlds" IPFS file.

mikeshultz commented 4 years ago

Tried doing this quick & dirty with a probe to the gateway for the "hello worlds" file but the gateway apparently takes a long time to come up. Will need to either figure out why that's taking long(badger?) and fix that, or adjust the startup probe timeouts to cope with this.

mikeshultz commented 4 years ago

At the same time, we might should increase the nodes we have in the cluster while we're at it. Would make coping with the rollouts easier, smoother, and with zero downtime.