Page 1 of 2 12 LastLast
Results 1 to 15 of 30

Thread: CPanel - mysql clustering

  1. #1
    Member
    Join Date
    Jun 2007
    Posts
    5

    Default CPanel - mysql clustering

    Is it possible with cpanel to do mysql clustering where sql will reside on a server outside the webhosting environment??? Would it even make sense to do such a thing?

    We are in the midst of trying to configure a scalable, easy to use solution and we are extremely interested in cpanel so i am just curious if this is possible.



    </firstpost>

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2003
    Posts
    2,002

    Default

    its posible
    Lowest Host/Empire Technology LLC
    Affordable hosting solutions http://empire-hosting.net
    List Your hosting site FREE in http://hostgeneration.com

  3. #3
    Member hostmedic's Avatar
    Join Date
    Apr 2003
    Location
    Washington Court House, Ohio, United States
    Posts
    559
    cPanel/WHM Access Level

    DataCenter Provider

    Default Very Easy

    In short - this is very simple to do.

    What you would do - is add a server into your network with a private IP
    add a private IP into your local machine - (suggest a gigabit connection :-) but thats just me )

    now go into WHM and setup a remote SQL server...


    You can change the MySQL server from the local server ("localhost") to point to a remote server. This allows MySQL functions to be performed by another computer.


    Steps

    1 To access the SQL Services Menu, click on SQL Services, on the main screen of your WebHost Manager interface.

    2 Click on Setup Remote MySQL server.

    3 Enter the name (or ip) of the remote server in the Remote MySQL Host field and its password in the Remote Mysql Host's Root Password field.

    NOTE: Do not enter the root password for the remote MySQL server in the Remote MySQL Host's Root Password field.

    4 Click on Setup.



    Feel like your Cloud Provider's just weathering the storm? Hop Off the Cloud - The Weathers nicer over here.

  4. #4
    Member hostmedic's Avatar
    Join Date
    Apr 2003
    Location
    Washington Court House, Ohio, United States
    Posts
    559
    cPanel/WHM Access Level

    DataCenter Provider

    Default btw welcome

    By the Way - welcome to the community -



    Feel like your Cloud Provider's just weathering the storm? Hop Off the Cloud - The Weathers nicer over here.

  5. #5
    Member hostmedic's Avatar
    Join Date
    Apr 2003
    Location
    Washington Court House, Ohio, United States
    Posts
    559
    cPanel/WHM Access Level

    DataCenter Provider

    Default cPanel Seminar Slides

    Check this link out

    http://trainingseminar.cpanel.net/sl...e%20Server.pdf

    That should explain this in detail for you.



    Feel like your Cloud Provider's just weathering the storm? Hop Off the Cloud - The Weathers nicer over here.

  6. #6
    Member
    Join Date
    Jun 2007
    Posts
    5

    Default

    thanks ALOT for the detailed reply and help. If this is the way things go around here I'm glad to be a part. again homedic thanks for the reply.

  7. #7
    cPanel Development cPanelKenneth's Avatar
    Join Date
    Apr 2006
    Posts
    4,128
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by hostmedic View Post
    Check this link out

    http://trainingseminar.cpanel.net/sl...e%20Server.pdf

    That should explain this in detail for you.
    Skip to slide 20. The rest loses some meaning without the video/audio

  8. #8
    Member hostmedic's Avatar
    Join Date
    Apr 2003
    Location
    Washington Court House, Ohio, United States
    Posts
    559
    cPanel/WHM Access Level

    DataCenter Provider

    Default audio/video

    did you guys record your sessions ?

    We have done a few like this


    http://webempoweredchurch.com/extens...hpresentation/ click on the presentation and see how it works

    if not - maybe next year - would be really nice to have however... :-)



    Feel like your Cloud Provider's just weathering the storm? Hop Off the Cloud - The Weathers nicer over here.

  9. #9
    cPanel Development cPanelKenneth's Avatar
    Join Date
    Apr 2006
    Posts
    4,128
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by hostmedic View Post
    did you guys record your sessions ?

    We have done a few like this


    http://webempoweredchurch.com/extens...hpresentation/ click on the presentation and see how it works

    if not - maybe next year - would be really nice to have however... :-)
    Yes we did record the presentations. They are currently undergoing post-production processing.

  10. #10
    Member
    Join Date
    May 2006
    Location
    Johannesburg, South Africa
    Posts
    976
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by hostmedic View Post
    In short - this is very simple to do.

    What you would do - is add a server into your network with a private IP
    add a private IP into your local machine - (suggest a gigabit connection :-) but thats just me )

    now go into WHM and setup a remote SQL server...


    You can change the MySQL server from the local server ("localhost") to point to a remote server. This allows MySQL functions to be performed by another computer.


    Steps

    1 To access the SQL Services Menu, click on SQL Services, on the main screen of your WebHost Manager interface.

    2 Click on Setup Remote MySQL server.

    3 Enter the name (or ip) of the remote server in the Remote MySQL Host field and its password in the Remote Mysql Host's Root Password field.

    NOTE: Do not enter the root password for the remote MySQL server in the Remote MySQL Host's Root Password field.

    4 Click on Setup.
    If a new domain is added to the main server, or a new DB is created by a cuser, will it automatically be created / replicated on the other server?
    • cPanel :: Fantastico :: RVSkin :: WHM :: ModernBill
    • Reseller Hosting :: SSL Certificates :: Domain Registrations :: Affiliate Program
    • Blog Hosting :: CMS Hosting :: Forum Hosting :: E-Commerce Hosting

    SoftDux- The Leaders in Software
    Use the coupon: cpanel-06 to get 20% off our packages

  11. #11
    cPanel Development cPanelKenneth's Avatar
    Join Date
    Apr 2006
    Posts
    4,128
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by SoftDux View Post
    If a new domain is added to the main server, or a new DB is created by a cuser, will it automatically be created / replicated on the other server?
    Once the Remote DB setup is performed, new databases, database users, etc, will be done on the remote server, not the local one (barring bugs).

  12. #12
    Member
    Join Date
    Jun 2007
    Posts
    36

    Default

    Do you need only mysql cluster, or are interested in fully redundant cpanel servers?
    Expedio Servers Clustered Dedicated Servers

    Failsafe Clusters | Fully Redundant | Supports all leading control panels
    Get 99.999% uptime even if hardware fails!

  13. #13
    Member
    Join Date
    Mar 2006
    Location
    Brno, Czech Republic
    Posts
    511

    Default

    small question. if the mysql is under heavy usage. how will i make 2 servers clustered to handle the mysql load? i mean .. the same database.
    Not everything that is counted counts and not everything that counts can be counted

  14. #14
    cPanel Development cPanelKenneth's Avatar
    Join Date
    Apr 2006
    Posts
    4,128
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by katmai View Post
    small question. if the mysql is under heavy usage. how will i make 2 servers clustered to handle the mysql load? i mean .. the same database.
    It kind of depends upon the level of complexity you want. Generally speaking it would involve a threee server setup:

    Two MySQL servers
    One proxy server

    Along with customizing the application because such a setup would likely use Replication which mandates that data modification only happen on one server, the Master. Hence the application would need customized to send INSERT, UPDATE and DELETE type statements to the Master, while SELECT type statements would go to the proxy server for load balancing. Hopefully your application does far more SELECTing than UPDATEing.

    You might checkout http://forge.mysql.com/wiki/MySQL_Proxy for info about a proxy, or http://haproxy.1wt.eu/ for a more generalized solution. Also, it is possible to do soemthing like combinae the Master MySQL and Proxy onto one server.

    It's really difficult to give a pat answer to these types of questions because:

    1) There are numerous ways to reach the stated goal

    2) The particular requirements should be fully defined - which can be difficult to convey on a Forum


    Anyway, if the videos from the Seminar are posted, look for my presentation on MySQL replication and clustering.

  15. #15
    Member
    Join Date
    Mar 2006
    Location
    Brno, Czech Republic
    Posts
    511

    Default

    i was checking it now. thanks for the tips, i will be reading into this and see what i can come up with
    Not everything that is counted counts and not everything that counts can be counted

Page 1 of 2 12 LastLast

Similar Threads

  1. cPanel Clustering
    By Thomas Manning in forum New User Questions
    Replies: 1
    Last Post: 07-23-2011, 10:32 AM
  2. New to cPanel. What is clustering
    By redwood in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 07-16-2008, 10:26 AM
  3. MySQL clustering
    By FASherman in forum cPanel Developers
    Replies: 3
    Last Post: 10-06-2006, 02:38 PM
  4. cPanel clustering?
    By jimcarter in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 04-18-2003, 07:46 AM
  5. Clustering in cpanel 6
    By TheVoice in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 02-25-2003, 05:05 PM