S
S
Sergey Tishchenko2017-07-22 22:54:04
linux
Sergey Tishchenko, 2017-07-22 22:54:04

What are the ways to deplete servers?

Good day.
For example, there is a server running various microservices running RabbitMQ. In the future, with an increase in load, it became necessary to move some services to separate servers. How can they be combined so that they see RabbitMQ. Of those methods that I found on the Internet:
- Forwarding ports via ssh. Doubts arose due to the stability of the connection.
- Create a VPN server and add all servers to the internal network.
Are there any other ways to accomplish this task?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
S
Sergey Tishchenko, 2017-07-23
@Nabari

Thank you all for your advice, and I'm sorry, I forgot to mention in the description that docker is used to create microservices. Based on advice and additional search, I found a solution in the form of docker swarm (kubernetes, mesos).

V
Vladimir Zhurkin, 2017-07-22
@icCE

For example, there is a server running various microservices running RabbitMQ. In the future, with an increase in load, it became necessary to move some services to separate servers. How can they be combined so that they see RabbitMQ

If you can stay within one DC, you stay within one DC.
At the same time, I understand that the data center is any room where you have servers. Even at home on the balcony.
If it's time for you to grow more than one DC and think about distributed tasks, then you need to make connectivity distributed. This question is not as simple as it might seem at first. Indeed, you can use the VPN channel and it seems, well, that's cool then? But now let's imagine that the vpn channel has fallen, but the DC continues to work. What will your application do next? How will it work and how will record connectivity be restored when the VPN comes back?
Therefore, yes, the VPN answer in one form or another solves this problem, but do not forget to build a distributed architecture and think about failures that may be. It is possible to make an open channel through which clients communicate and, for example, to synchronize the connectivity of DCs to each other via these channels. Of course, it is not necessary to leave out the ports of RMQ, mongodb, mysql and other services. For good, you need to make only 1 vpn entry point, and leave only the minimum necessary for work outside.

R
rPman, 2017-07-22
@rPman

Raise vpn, do not try to open ports to the outside as suggested above, the entire internal kitchen should be closed to outside access.

S
Sanes, 2017-07-23
@Sanes

What kind of VPN are we talking about? Are you going to take a server without a public IP?
Another thing is if your server is divided into containers or VDS in a gray host network.

M
marataziat, 2017-07-23
@marataziat

Cluster :)?

P
Puma Thailand, 2017-07-23
@opium

what kind of heresy do you write
, it just hangs on one server you have on it for a rabbit from microservices and go, why do you need to combine something here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question