Jump to content

New to load balancing database, which idea is best?


brentman

Recommended Posts

So just to preface this, I have been part of two operations (one as developer, one with a 3rd party company developing) where the business was forced to cease due to difficulties in database load balancing and lots of people lost lots of money. I am talking about big data and high performance needed at the same time.

 

So for my new project, I am going to try and design it around having a forever expanding infrastructure of servers but that means setting it correctly from the beginning. I have put together some ideas for possible ways to split the database load across multiple servers. Any input to which idea(s) are best would be great so I know which to explore further. Also any relevant info on this type of thing would be helpful as this is the first time I am personally doing this.

 

Thanks!

post-123512-0-88670600-1417425546_thumb.jpg

Link to comment
Share on other sites

Thanks that looks like it is the best solution. I am however nervous using something outside of apache/php/mysql for a production build as that is all I have ever worked with and I am on a time crunch to launch Jan 5th. Any more typical suggestions I can implement pre launch until I can migrate to Cassandra later on?

Link to comment
Share on other sites

Option 3, except you use Replication to copy the data rather than a cron job. The master is usually treated as write-only also, all the reads are done via the slave servers.

 

So your scripts would have separate read and write connections. The read connection would go to one of the possible slave servers. The write connection goes to the master server. Whenever you need to make a change (UPDATE/INSERT/DELETE/etc) use the write connection. If you're just reading (SELECT/etc) use the read connection.

 

If you end up with multiple slave servers, then you can balance across them by either just choosing one at random, or use another separate balancing node that will cycle through them.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.