rajnandan1 / kener

Kener is a Modern Self hosted Status Page, batteries included
https://kener.ing/
MIT License
2.5k stars 104 forks source link

Horizontal scaling? #43

Open cdhanna opened 10 months ago

cdhanna commented 10 months ago

Is your feature request related to a problem? Please describe. I am worried that if I adopt this product, it won't scale well in high traffic. I would want to be able to have multiple node servers handling requests in a round-robin fashion, hosted on a fleet of containers. But from what I gather from looking at the docs and code, this isn't possible. If I run multiple instances, I think I'd be running multiple collectors, which would duplicate metrics.

Describe the solution you'd like I would like to be able run the server in "view only mode", and disable metric collection. This way, I can run one metric collector, and leave the rest of the instances as view only, so that I can scale out new instances to meet traffic needs.

Describe alternatives you've considered

  1. modify the source code myself,
  2. simply have 1 instance and hope it handles traffic load,
  3. simply have many instances, and don't care that the metrics are duplicated. This would mean that different users may have a slightly different metric reporting experience.

Additional context I think this project is awesome! I would love to adopt it for my use case :)

rajnandan1 commented 10 months ago

Yes, I have working on separating the collection and display part in local.

Taking longer than usual to raise the PR

Will close the issue once raised and merged.