Results 1 to 2 of 2

Thread: documents in a load balanced environment

  1. #1
    smueller72 is offline Sugar Community Member
    Join Date
    Jan 2005
    Posts
    125

    Default documents in a load balanced environment

    Hi all - We have the sugar application running on two load-balanced servers running over a single database instance on a third server. We have an issue with documents - i.e. when I document is created the meta data is stored to the database but not the file itself - which is stored in hierarchy of the site itself. The problem is that the user won't necessarily access that same server the next time they log in and, as a result, they will be able to view/edit the document meta data but won't necessarily be able to view/access the document itself. Is there a 'best practice' on how to handle documents in a load balanced configuration? Can we centralize the document storage easily to another server - i.e the database server - and/or store the file in the database itself? Other ideas? We can't be the only ones that are running sugar in a load-balanced environment. Any suggestions would be greatly appreciated.

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: documents in a load balanced environment

    A few ideas come to mind..

    1. Use rsync or other similar software to maintain the /cache/upload folders on both installations in sync with each other.

    2. If you are on Linux/Unix, try making /cache/upload a symbolic link that in turn points to a central location for all your file/document storage

    3. Modify the Sugar code to cause it to save and read all files/documents from a central location

    The third option is the most involved and really shouldn't be necessary to get that point, but it is an option so I threw it out there for your consideration.
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. where are documents stored?
    By jsbenson in forum Help
    Replies: 11
    Last Post: 2009-06-12, 11:16 AM
  2. Load Balanced SugarCRM
    By original in forum Help
    Replies: 3
    Last Post: 2008-07-01, 01:23 PM
  3. Cannot see documents after upgrade
    By mgreis in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-07-30, 01:38 PM
  4. Replies: 1
    Last Post: 2006-11-01, 02:22 AM
  5. Replies: 2
    Last Post: 2005-11-24, 08:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •