There are applications and services in enterprises that do not have to constantly work and have a limited user base (say, a few people).
These applications can be disabled and launched either on the basis of planning, or even more efficient work with the user. So, we are talking about an on-demand service (say, wrapped in a container) and node start up and shutdown.
Now, first of all, to mention that the reason why I mention authenticated user activity is that it makes sense to start and stop on this basis (i.e. not based on lower-level network traffic). You can imagine that corporate SSO is involved (for example, OAuth 2).
So my question is: did anyone try to implement what I described using Consul or Kubernetes?
In the case of Consul, it may happen that the key value repository can be used to provide TTL classes to the classes (ie a small user base), each time an authenticated user requests access to this Micro, this TTL application is updated . During the TTL window, we want to check the operation of node (s), containers and services - outside the window that we donโt have (since we want to save it to op ex).
This question is similar to this question about autoscaling , but it differs in that this use case concerns scaling from 0 nodes and then to 0 based on an authenticated user base (most likely, SSO is used).
source share