-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running multiple wordpress? #41
Comments
@doct15: a similar question was asked in TritonDataCenter/containerpilot#260 shortly after yours. The use case here is probably different from there, but that discussion may also be useful. To your question:
You'll have to separate two basic parts: the running containers and the database backups in Manta. You identified the Manta piece, and a specific Separating the running instances is what's discussed in TritonDataCenter/containerpilot#260. The scenarios I outlined in TritonDataCenter/containerpilot#260 (comment) don't directly apply to this, but the solutions do. Which of the solutions would work better for you depends on a few questions, and in some ways your preference. You basically have two choices: complete isolation or partial isolation. Complete isolationComplete isolation would start with running separate Consul clusters. Each Consul cluster would have a different CNS service name (you'd have to set that here). You'd then have to set a matching name in the Partial isolationHowever, you might point out that you'd like to save money by running a shared Consul cluster and maybe, Nginx instances (with an nginx.conf that has all the details for all three WordPress sites). To make that work you'll have to namespace the service names each container announces itself as, and upstreams each container watches for. Those are set in the Thinking through the costs and savings from the above, the Consul cluster costs about $7.20 per month per WordPress site if you completely isolate everything. To save money, you might decide to run a single node of Consul (all the data can be regenerated if the Consul node dies), in which case the cost for Consul is just about $2.40 per month per WordPress site. So, we have four options:
Which one you choose might depend on what else you're doing with Consul (storing other configuration details that can't be recovered, for example). The savings opportunity by sharing the Nginx instances might be greater, but hat complexity is higher. Bonus: WordPress multisiteFinally, you can also skip all of the above and run multiple WordPress sites using WordPress multisite. This Docker image does not have support for that now, but we'd be willing to work with somebody to implement it. |
If I wanted to have several of this wordpress deployed to Joyent at the same time, let's say three instances, what values in instance 2 and 3 should I change to accomplish this?
MANTA_BUCKET, I assume is one.
Any guidance is appreciated.
The text was updated successfully, but these errors were encountered: