Score:0

How to start multiple daemons of one service?

je flag

There is one (responsible for sending SMS) service(daemon) in Ubuntu 20.04, it is single-threaded, how can run multiple copies of this service(daemon), or make it multi-threaded?

Otherwise, for each project, I create one server with this service, which affects resources.

the thought of Docker or lxd/lxc comes to mind.

Score:0
in flag

One possible solution is to create few different config files and make the daemon listen on different port or use different socket (file).

Also is possible to run containers.

In both case you will need loadbalancer if you want to unify the communication from point of view of the client

Red Hat avatar
je flag
containerization solved the my challenge
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.