![]() |
PATCH: Multi-Server ispCP! - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Development Area (/forum-1.html) +--- Forum: General discussion (/forum-11.html) +--- Thread: PATCH: Multi-Server ispCP! (/thread-4022.html) |
PATCH: Multi-Server ispCP! - zmediaguru - 09-10-2008 09:42 AM I have the basics all up and running, and have successfully packaged up my patch and SQL update script. This patch applies to a fresh install of ISPCP RC6, it contains both the .patch file and the SQL update script: [attachment=445] Basically, this patch does the following:
Applying the Experimental ISP-CP Multi-Site Patch I have tested this process on a fresh Ubuntu 8.04 Hardy server. Here is the process for applying the patch and setting up multi-servers: Step 1: Download and unzip ISPCP-omega RC6 Code: # wget http://voxel.dl.sourceforge.net/sourceforge/ispcp/ispcp-omega-1.0.0-rc6.tar.gz Step 2: Download and unzip ISPCP-multisite Patch (see attachment above) Step 3: Install ISPCP Dependencies (see documentation for your specific distro) Step 4: Apply ISPCP-multisite Patch - from ispcp-omega.1.0 folder, run: Code: # cd ispcp-omega-1.0.0 Code: # make install Code: # cp -Rv /tmp/ispcp/* / Code: # cd /var/www/ispcp/engine/setup Step 8: Run ISP-CP multisite DB plugs Code: # mysql -u root -p ispcp < [path to patchfile]/ispcp_multisite_rc6.sql Step 10: Create new host entry for local machine - Click Settings > Manage Hosts - For Host: enter local hostname - For Alias: enter a description of the local server - Click Add All Done! To add additional servers to the ISP-CP cluster, follow the steps above, installing a full copy of ISP-CP, The only difference on the additional servers will be during the ispcp-setup, point the MySQL database to the original ISP-CP server. All ISP-CP node servers will point to the same server. Note: You may need to manually adjust permissions on the 'ispcp' database to allow connections from other hosts. Once you have multiple servers set up in this manner, you can add IP addresses, and assign those IP address to any host setup and configured on the system. Note: This modification is highly experimental and untested, and intended only for testing purposes on a clean installation of ISP-CP - proceed at your own risk. There is still quite a bit of work to be done. Not intended for use in Production. RE: PATCH: Multi-Server ispCP! - BeNe - 09-10-2008 06:45 PM I am during the testing this time...install was without any Problem. Short result for the first time: As long as the list is empty only the varibales are shown: [attachment=446] After the first host, it looks ok. But i can´t delete the it. When i add a second Server i have a Remove Button for both. [attachment=447] Go on now with testing.... Greez BeNe RE: PATCH: Multi-Server ispCP! - BeNe - 09-10-2008 07:45 PM Ok, maybe i have some understanding problems. I installed the second Server now and set the MySQL Server to the first host. But in this step the setup does create the ispCP DB new. Means with every new host in the Cluster all settings get lost ?! Greez BeNe RE: PATCH: Multi-Server ispCP! - DiXeoN - 09-10-2008 09:05 PM Maybe, in the ispcp setup you should be able to select if its a master host, or a slave host? Just an idea i got ![]() (The master host is normal, and the slave doesnt create the DB again) RE: PATCH: Multi-Server ispCP! - zmediaguru - 09-11-2008 02:12 AM BeNe Wrote:Short result for the first time: This is correct, until the install script is modified to automatically add the localhost as a host during setup. For now you have to add it manually. BeNe Wrote:Ok, maybe i have some understanding problems. Good catch. When I tested installing my second server, I actually installed it with a local database, and then once it was running pointed it over to the first server's db by changing the variables in ispcp.conf. DiXeoN Wrote:Maybe, in the ispcp setup you should be able to select if its a master host, or a slave host? Good idea! This should definitely make the setup process easier. Good suggestion! RE: PATCH: Multi-Server ispCP! - zmediaguru - 09-11-2008 02:17 AM BeNe Wrote:After the first host, it looks ok. But i can´t delete the it. This is the same behavior that Manage IPs has. Since an IP must be assigned to a host, there must be at least one host present at all times. To change hosts (or IPs) completely, you just need to add your new one, then remove the one you no longer wish to use. Also, similar to the IP behavior, the GUI will not let you remove a host if there are currently any IP addresses assigned to it. You must first reassign all IPs to other hosts before it will allow you to remove the host. This prevents orphaned IP addresses. RE: PATCH: Multi-Server ispCP! - DiXeoN - 09-11-2008 08:18 PM Im glad that you could use my suggestion! RE: PATCH: Multi-Server ispCP! - Eminos - 09-16-2008 04:35 AM Just wanted to say that this sounds great (and sign up for the email notification) ![]() Will this enable us to create several separate apache and mysql hosts/servers ? So when a domain user is creating a database he could choose what mysql-server he wants it on? /E RE: PATCH: Multi-Server ispCP! - zmediaguru - 09-23-2008 06:33 AM Eminos Wrote:Will this enable us to create several separate apache and mysql hosts/servers ? So when a domain user is creating a database he could choose what mysql-server he wants it on?No - currently this patch requires the use of a single MySQL server that all of the ISP-CP servers all connect to. With my installation, I use a separate server dedicated to MySQL that can handle quite a bit of load from multiple ISP-CP web servers. Perhaps down the road we can look at adding support for multiple MySQL servers. Currently this path allows the administration of multiple IPS-CP servers, each running their own independent Apache, ProFTP, Bind, and Postfix - all conveniently configured from a single ISP-CP control panel. My next step is to work on breaking out the Bind so that DNS runs on a single server (possibly with slave Bind servers configured) so that all DNS is handled on a single server. Having separate Bind instances on each server is too cumbersome for my purposes. RE: PATCH: Multi-Server ispCP! - zmediaguru - 11-12-2008 09:03 AM Update: I'm finishing up work on refining the Traffic Statistics counting functions to work better with this Multi-Server configuration. The Traffic updates track bandwidth usage per server or total combined bandwidth. I hope to post an updated patch as soon as I have finished the revisions, and cleaned up my patch. Stay tuned! |