Haproxy: Difference between revisions

From Bitpost wiki
No edit summary
No edit summary
Line 9: Line 9:
** Might kill sub-second performance?  Might not.  We already have delayed-write.
** Might kill sub-second performance?  Might not.  We already have delayed-write.


For the first 1000 users, we will NOT do load balancing.
For the first 1000 paid users, we will NOT do load balancing.


Instead, we will just use haproxy to redirect (bitpost.com IP) + port 8080 requests to abettertrader.com (all https).
Instead, we will just use haproxy to redirect (bitpost.com IP) + port 8080 requests to abettertrader.com (all https).

Revision as of 15:02, 9 May 2017

Intro

Two database design choices:

  • Each server gets its own quotes and saves all its own data
    • Need to read user id from each request and send each user to a predetermined server
    • Need multiple Etrade accounts, one for each server, unless we get a deal with Etrade
  • Switch to a distributed database with master-master replication
    • A lot of work
    • Might kill sub-second performance? Might not. We already have delayed-write.

For the first 1000 paid users, we will NOT do load balancing.

Instead, we will just use haproxy to redirect (bitpost.com IP) + port 8080 requests to abettertrader.com (all https).