Using managed DNS and slave servers
Permalink
I have a customer that wants a new site and I have recommended Concrete5.
But I am unsure how to set it up as they use a managed DNS system that will provide the web site visitor with an IP address on a round robin basis. If a visitor views 5 pages on their web site, they could have had the content delivered from 5 different servers around the world.
Their systems are setup so they save their files to a master server, and automated processes copy files and data to the slave servers within a couple of mins.
Each instance of MySQL runs it's own local copy of MySQL where data is copied down to. The only data copied out from the slave servers are the logs stats which get copied to another server and merged with data from all the other servers.
Given this setup, all C5 data and files will need to be updated on the master server so that it gets replicated out to the slave servers.
I could use another domain like c5.example.com that points only to the master server where the staff would make updates.
But I have noticed on other sites I have worked on with C5, the domain is placed in linked content - meaning links would show as c5.example.com/about-us/ instead ofhttp://www.example.com/about-us/. This means the failover DNS systems and servers are not then utilised, and if the master server goes down the web site is down too.
My question is, how do I get C5 to only visit the Master server for updating content without it placing the wrong domain name in the links/content?
UPDATE: To better explain the situation I am attaching a PDF with a diagram showing the setup we have.
But I am unsure how to set it up as they use a managed DNS system that will provide the web site visitor with an IP address on a round robin basis. If a visitor views 5 pages on their web site, they could have had the content delivered from 5 different servers around the world.
Their systems are setup so they save their files to a master server, and automated processes copy files and data to the slave servers within a couple of mins.
Each instance of MySQL runs it's own local copy of MySQL where data is copied down to. The only data copied out from the slave servers are the logs stats which get copied to another server and merged with data from all the other servers.
Given this setup, all C5 data and files will need to be updated on the master server so that it gets replicated out to the slave servers.
I could use another domain like c5.example.com that points only to the master server where the staff would make updates.
But I have noticed on other sites I have worked on with C5, the domain is placed in linked content - meaning links would show as c5.example.com/about-us/ instead ofhttp://www.example.com/about-us/. This means the failover DNS systems and servers are not then utilised, and if the master server goes down the web site is down too.
My question is, how do I get C5 to only visit the Master server for updating content without it placing the wrong domain name in the links/content?
UPDATE: To better explain the situation I am attaching a PDF with a diagram showing the setup we have.
open the /config/site.php and remove both the base url and Dir rel lines and it should be fine, no need to do what was stated above
Do you recommend removing the lines where they get defined or setting them as empty strings?
Is there a reason that the domain is set here?
Could removing these line break other things in C5?
Is there a reason that the domain is set here?
Could removing these line break other things in C5?
and:
This code also exists in /concrete/elements/editor_init.php.
Frankly, it seems like it would be better if this were the default. It would make moving sites to different domains easier.
Another alternative that might be valuable in your case would be to define a replacement value for BASE_URL (with a different name) in site.php and use that in these locations instead.