<p>It should be the same for every server in the load balanced environment.</p>

<p>You should also set the <a href="https://craftcms.com/docs/config-settings#appId" rel="nofollow">appId</a> config setting to a consistent value for every server in the cluster as well.</p>

<p>I've updated the documentation for those config settings to clarify.</p>

CC BY-SA 3.0
2016-10-20T01:01:33.113Z
2016-10-20T01:01:33.113Z
Brad Bell
<p>In the Craft docs for <a href="https://craftcms.com/docs/config-settings#validationKey" rel="nofollow">validationKey config settings</a>, it states that <code>validationKey</code> should be used in load-balanced environments.</p>

<p>I'm curious on how to set this up for a load-balanced site. Does each  server need a different key, or should they all share the same setting in the config?</p>

<config><load-balancer>
validationKey on load balanced enviornments
# validationKey on load balanced enviornments

(Asked by: username_0 on 2016-10-19)

In the Craft docs for [validationKey config settings](https://craftcms.com/docs/config-settings#validationKey), it states that `validationKey` should be used in load-balanced environments.

I'm curious on how to set this up for a load-balanced site. Does each server need a different key, or should they all share the same setting in the config?

**Tags:** config, load-balancer

---

## 1 answers

### Answer by username_1 on 2016-10-20. Score: 0 | Accepted answer

It should be the same for every server in the load balanced environment.

You should also set the [appId](https://craftcms.com/docs/config-settings#appId) config setting to a consistent value for every server in the cluster as well.

I've updated the documentation for those config settings to clarify.


---

