qmail-qmqpc.c load balancing mods

2000-07-25 Thread Austad, Jay
Here's the modified version of qmqpc that will pick a random server instead of the first available. I haven't tested it yet, but it compiles, and printf statements in strategic places give me the output I'm looking for. The rand() function is seeded with the current milliseconds from the system

Re: qmail-qmqpc.c load balancing mods

2000-07-25 Thread JuanE
Looks like it's going to work, but I still like the round robin idea better. With the round robin idea you avoid the possibility of polling the same down server repeatedly. I admit that this seems like an unlikely event, but if you have few servers, it can be significant. (with 3 servers this