vmware-tanzu / secrets-manager

VMware Secrets Manager is a lightweight secrets manager to protect your sensitive data. It’s perfect for edge deployments where energy and footprint requirements are strict—See more: https://vsecm.com/
https://vsecm.com/
BSD 2-Clause "Simplified" License
135 stars 24 forks source link

demo autoscaling use case #224

Open v0lkan opened 10 months ago

v0lkan commented 10 months ago
autoscaling:
  enabled: false
  minReplicas: 1
  maxReplicas: 100
  targetCPUUtilizationPercentage: 80
  # targetMemoryUtilizationPercentage: 80

Note that, for this to work we need to define how the system behaves in autoscaled mode.

Either leader election, or using a common backing store and using some lock etc.

There are already issues for that. so to start this demo we should at least have an “auto scaling” user story sorted out.

v0lkan commented 10 months ago

autoscaling will not work unless the state is share in a common backing store such as redis, or memory is not used and all state is read from a persistent volume. Distributed locking is nasty to get right. This will require some careful thought and likely some lua scripting. an alternate approach could be using a message queue; but it’ll be an overkill in our case, and it will be two components (queue and redis) to maintain isntead of one component (redis) anonter alternate approach would be leader election and letting only one of the load-balanced servers talk to redis as long as it is healthy.