Inside Out

  • Home
  • Categories
    • communities
    • Design
    • Events
    • General
    • inside
    • Links
    • oooday
    • Products
    • SEO
    • Social Media
    • Technology
      • Symfony
    • test
    • Usability
  • Subscribe via RSS

Database Load Balancing with Propel 1.2

Alvaro    November 20th, 2008
   Alvaro
   Published in Symfony, Technology  |  2 Comments

For one of our projects we have load balanced database servers. We needed to have a way to reflect that in our project code which is written using symfony 1.0. The problem was that symfony 1.0 came by default with Propel 1.2, so our database code was targeted to that version of Propel -version 1.3 supports loadbalancing out of the box-.

For the development environment this represented no problem, but when we faced the deployment to production we needed a way to support loadbalancing with Propel 1.2. After some research we decided to create our own loadbalancer plugin for symfony.

We have been testing it live and is performing good so far.

The good news is that we released the plugin as open source so you can go and get it from the symfony website. There we provided a README with the instructions to set up the plugin.

As for the inner workings of the plugin, what it does is override the symfony default Peer builder to add the loadbalance support. Then the database connection for the slaves are specified in the normal database.yml file, so there is no learning curve on the usage of the plugin.

If you want more details on the implementation just drop a line on the comments and we can write a small tutorial about it.

Share and Enjoy:
  • StumbleUpon
  • Sphinn
  • del.icio.us
  • Facebook
  • TwitThis
  • Google
  • Reddit
  • Digg
  • MisterWong

Responses

Feed Trackback Address
  1. » Database Load Balancing with Propel 1.2 :: Inside Out says:

    November 20th, 2008 at 11:08 am (#)

    [...] For the development environment this represented no problem, but when we faced the deployment to production we needed a way to support loadbalancing with Propel 1.2. After some research we decided to create our own loadbalancer plugin … Original post [...]

  2. rpsblog.com » A week of symfony #99 (17->23 november 2008) says:

    December 1st, 2008 at 12:09 am (#)

    [...] Database Load Balancing with Propel 1.2 [...]

Leave a Response

Recent Posts

  • Merry Xmas and a happy new year!
  • Openeverything Berlin
  • Short note on ATM usability
  • User friendly exception handling with symfony
  • the NetCircle overheards

Recent Comments

  • gustav on User friendly exception handling with symfony
  • Alvaro on User friendly exception handling with symfony
  • gustav@gans.de on User friendly exception handling with symfony
  • Kent Beatty on Openeverything Berlin
  • rpsblog.com » A week of symfony #101 (1->7 december 2008) on User friendly exception handling with symfony


©2009 Inside Out
Powered by WordPress using the Gridline Lite theme.