E
E
egorkozelskij2021-10-19 11:11:15
Software design
egorkozelskij, 2021-10-19 11:11:15

How to distribute the load of subsystems?

Hello!

Interested in the issue of managing sub-systems and regulating the load between servers.
Let me take a simple example: A service is a telegram bot constructor that hosts a bot for it on some server when the client presses the "START" button (or everything happens on the same machine with resource allocation).
When there are a lot of such users, then we have a large number of systems that operate exclusively in the space of each user and are able to communicate with the central node to process commands (Start, stop, etc.).

Actually, are there any relevant articles that propose an architecture for managing all these processes?

The simplest thing that comes to mind is a central node to which all available hosts are authorized. Each host has its own central control program (process). When requesting the launch of a new bot, the central node polls the load of free nodes and sends a command to one or less loaded nodes to start. The node, in turn, launches a docker container on its local machine and then manages it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2021-10-19
@egorkozelskij

No need to reinvent anything - everything has long been invented in k8s and the CNCF community

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question