Skip to content

Instantly share code, notes, and snippets.

View erkie's full-sized avatar
🕺
working

Erik Rothoff Andersson erkie

🕺
working
View GitHub Profile
import Ember from 'ember';
export default Ember.Component.extend({
times: [
1,
2,
3,
4,
5,
6,
@erkie
erkie / Load Balancing FTP.txt
Created January 25, 2020 22:07
Load balancing FTP
Load Balancing FTP.
If you run an FTP server at scale, you will eventually want to load balance it. This is no mean task as FTP is a notoriously finicky protocol. Those familiar with FTP will know that it uses more than one TCP connection; the first connection is the command channel and the second is the data channel. To successfully load balance FTP, you must address both of these connections.
To further complicate matters, the data channel can be established using two methods. FTP Active or FTP Passive. For the rest of this document, I will simply use the terms active and passive to refer to these modes. First, let’s review how the command and data channels are used in FTP.
Active FTP.
When using FTP in active mode, the FTP client first connects to the server on port 21. This opens the command channel. The client authenticates itself, sets options, retrieves feature support from the server etc. The data channel is not opened until the client makes request that will result in the transfer of data from the