Skip to main content

Using cPanel API in Cluster

Comments

7 comments

  • vanessa
    Run the API against the server the customer is supposed to be on. If the two web servers are clustered to both nameservers, the web server the account is created on will sync the DNS config based on what that server says the IP should be. So the nameservers will then direct requests for that domain to that IP address, which resides on the proper server.
    0
  • dsm
    [quote="vanessa, post: 1696942">Run the API against the server the customer is supposed to be on. If the two web servers are clustered to both nameservers, the web server the account is created on will sync the DNS config based on what that server says the IP should be. So the nameservers will then direct requests for that domain to that IP address, which resides on the proper server.
    Both servers are clustered for both name servers. If I call the API using the security token, like this: /https://example.com:2087/SECURITYTOKEN/json-api/functionname Will direct you to the right server, right?
    0
  • cPanelMichael
    Hello :) It's going to create the account on whichever hosting server "example.com" points to. Note that the DNS zone will automatically synchronize to the DNS-Only servers upon it's creation if you have configured the cluster. Thank you.
    0
  • dsm
    I will configure the cluster. Each server generates a security token, right? Even using the security token, the DNS-Only automatically decide which server will host the domain? I can not mix the domains from normal users with the premium users on the same server Thank you!
    0
  • cPanelMichael
    I am not sure I understand your question. Accounts are not hosted on DNS-Only servers, only the zones are hosted. Generally speaking, you are not going to have to perform any actions on the DNS-Only servers after you configure the cluster. As far as security tokens, I believe you might be looking for information explained in this document: Secure Remote Logins Thank you.
    0
  • dsm
    I'm sorry for not being clear in my questions. I need to use a translator and often the texts are not understandable. But I understood what I needed. Any further doubt try the forum again. Thanks for the replies and for your patience :)
    0
  • cPanelMichael
    I am happy to see the answers provided were helpful. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.