SFTP-сервер с балансировкой нагрузки

925
vishal vazkar

У нас есть 2 веб-сервера с балансировкой нагрузки в Azure, и я пытаюсь настроить SFTP-соединение с балансировкой нагрузки для своего клиента.

Я попытался сделать это, используя конечную точку с балансировкой нагрузки на Azure для SFTP, но FTP-соединение только соединяет и передает файлы на 1 сервер.

Я хотел знать, есть ли способ, которым я могу синхронизировать соединение SFTP для моего клиента на обоих серверах.

Есть идеи, как мне справиться с этой задачей?

0
Как вы проверили, что настроенная балансировка нагрузки не работает? Run CMD 8 лет назад 0
Я только что установил SFTP на обоих серверах, а конечная точка SFTP настроена как набор балансировки нагрузки в Azure в рамках того же облачного сервиса и набора доступности. Однако, когда я использую SFTP и загружаю файл, он загружается только на один из двух серверов и не синхронизируется. vishal vazkar 8 лет назад 0

1 ответ на вопрос

2
FjodrSo

Vishal, quoting from your comment:

I have just installed SFTP on both the servers and the SFTP endpoint is configured as a load balanced set on Azure under the same cloud service and availability set. However, when I use SFTP and upload a file it only uploads on one of the 2 servers and does not synchronise.

That's exactly how load balancing works. Load balancing is not mirroring. The load balance will balance the load by routing some incoming connections to one of your SFTP servers and some other incoming connections to your other SFTP server, but each client connection will be handled by one and only one of your SFTP servers.

Now, if what you want to achieve is to have the same data (the same files) on both, then what you need is some sort of replication/mirroring. If you are running an SFTP server that supports scripting and event-handling you may write your own scripts to copy every uploaded file to the other server as they are received by each server.

But even the above is not the solution I would recommend. The best solution would be for both of your SFTP servers to share the same back-end storage. You can do that in Azure by deploying your own DFS volume and sharing it with both SFTP servers, so that both actually read/write from/to the same volume.

Похожие вопросы