POLALA.COM
welcome to my space
X
Welcome to:polala.com
Web Design | Video Games | RVs | Religion | Management | Supplements and Vitamins | Software | Basketball | Related articles
Search:  
NAVIGATION: Home >>
Multi Server Config
Published by: anonym 2009-01-07
  • Multi Theft Auto • View topic - MTA Server Config Tool :(::
    8 posts - Last post: Dec 6, 2005Editing the txt file for the server config is stupid, PLUS my servers never show up on the list. Not even as unscanned. Please help me.
    http://forum.multitheftauto.com/viewtopic.php?f=50&t=14492
    HOME
    Alright... here is what I have configured now.

    1 www (static) server
    1 image server
    1 vB server
    1 mySQL server

    The problem lies in the fact that the vB server, while beefy... just can't sustain the load of everybody beating it to mush.

    So, my initial thoughts were to add another vB server to handle the dynamic generation of the forum pages. However, the problem lies in the fact that the avatars, attachments, stylesheets reside in the file system. So, if I split the vB server to two machines, I'd have to setup some sort of rsync functionality which would solve the problem sort of... but there still would be lag time while everything got sync'd properly. That doesn't fly...

    So, my thoughts were this...
    Some AdminAPI methods are server configuration only - TalkingTree.com::
    So if you're running CFMX 7 Multiserver or J2EE configuration you might be surprised that some AdminAPI methods are not available.
    http://www.talkingtree.com/blog/index.cfm/2005/9/22/AdminAPI-Restriction
    HOME
    Installing ISEE OpenVMS Clients with the Multi-server Model::
    Enter 3 to configure the multi-server model (see Figure D-14 “ISEE Configuration Utility Menu: Unconfigured Server”), and press the [Enter] on your keyboard
    http://docs.hp.com/en/5990-8547/apds05.html
    HOME

    What if I got a network attached storage device... it would have to be something lightning fast as network file storage is on average slower than RAID. If I get a network attached storage device to work properly and fast enough, then I could reconfigure as follows

    1 www (static) & image server
    2 vB servers (and possibly add 2 new ones to the mix)
    1 mySQL server
    1 network attached storage box

    The vB servers would all look to the network attached storage box for the avatars/attachments/stylesheets and .php files. Plus whenever users upload attachments, they would instantly be available to all the vB servers.

    The downsides of this are of course, cost and internal network traffic essentially skyrockets... but is keeps all the avatars and attachments out of the DB which keeps it from getting bloated and keeps the tables from being unnecessarily locked when people read/write attachments.

    Thoughts?


  • The way I do it on modthesims2.com is fairly similar:

    4 front end apache servers, connected to a dual opteron 244 backend mySQL db server and filestore via NFS.

    The vBulletin attachment storage path points to the mapped nfs directory so that all 4 webservers get the same content, and upload to the same place.

    I also have a dedicated unmetered server which runs apache and a custom php script to serve only zips and rars. I used a template change to bump all these types of files off to that dedicated server.

    The main change I made was to *not* use attachment.php for thumbnails. The reason being is that becuase I have a hacked board showing thumbnails in the forumdisplay for my download section (I have 16gb of attachments), each and every call to attachment.php is an extra 6-9 queries, plus the PHP overhead of serving the files via fopen(). So, what I do is create a folder called filestore, chmod it to 777, then change the underlying code so that instead of calling attachment.php with the attachment id, I work out the actual attached file, symlink it automatically in PHP, then do an http Location() header if needed. This then bypasses PHP and serves the images directly using apache which saves memory, plus they are cached a lot better.
    multi host SQL server config - dBforums::
    I did some searching in this forum and I didn't find exactly what I was looking for, so I apologize if this has been answered previously. At work we.
    http://www.dbforums.com/microsoft-sql-server/971327-multi-host-sql-server-config.html
    HOME

    Regards,
    Delphy


  • Erwin on this forum has hacked the code a bit to attachments as files over load balanced web servers.. might want to give him a pm and ask.

    vB devs I've asked them to look into this and I think they're working on it but for now you'd have to wait or use Erwin's hack.


  • Yeah I had problems when running a multi-server config with stylesheets, so I just stored them back in the db and everything was fine. :)


  • CMilne,

    We will implement a load balancer, but we shift huge amounts of bandwidth a day and have about 700 people online at a time, so we kind of need the servers. :)

    Erwin,

    I always found thttpd croaked when server load got high, so I always switched back to apache. Are you running a dedicated server just for thttpd?


  • Actually, my stylesheets are on my thttpd server as files - you just do some minor template edits to make that work.


  • Why not just get all of your servers and use load balancing?
    Because if you have style sheets as styles you have to then manually copy the files to every server and/or rysnc them.


  • Good feedback, thanks guys... hacking the code isn't my strongest skill set, but from what I am reading, I should be able to get away with putting the attachments, avatars on a network file share. I'm not sure about the stylesheets, I don't remember if there is a file location for those or not. I may have to put those back into the database.


  • The way I do it is fairly simple - I basically have 1 webserver with it's own subdomain attachment.php, global.php and the requisite functions.php / init.php etc files only - move all attachments from the database onto this webserver. Then change all php and template references to subdomain/attachment.php whenever an attachment is called. This includes when you upload attachments they should go to this web server only too.


  • Why not just get all of your servers and use load balancing?


  • I think I found the answer to my own question... well, I think I did.

    The option would be to use NFS to mount a central location for attachments, avatars and stylesheets... things that change constantly.

    Then use rsync to sync the things like .php files for the forum since those do not change as much and in the event that the NFS remote directories get knocked off line, the forum will still work, just minus the attachments, avatars and styleshets.

    From the limited searching I did, it looks as if the NFS should support the network traffic created by moving those things onto a network share.


  • Hmmm... alright, I'll will search through Erwin's past or send him a PM to find out more information.

    At the moment, waiting is the last solution because that one box that does the vB templates is reaching capacity.


  • CMilne,

    We will implement a load balancer, but we shift huge amounts of bandwidth a day and have about 700 people online at a time, so we kind of need the servers. :)

    Erwin,

    I always found thttpd croaked when server load got high, so I always switched back to apache. Are you running a dedicated server just for thttpd?
    I have a dedicated static file server using thttpd. The style sheets are on these, as are all images, avatars, havascript files, applets, flash files etc.





  • Where's The Advantage In Windows Genuine Advantage?
    Stocks Bounce After S&P Joins Bear Market
    PRINT Add to favorites
    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Multi Server Config , Please add it free.
     Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 polala.com        Site made:CFZ