keycloak-scim/topics/clustering/serialized.adoc

26 lines
917 B
Text
Raw Normal View History

2016-04-28 22:25:54 +00:00
[[_clustering_db_lock]]
=== Serialized Cluster Startup
2016-04-29 20:12:12 +00:00
{{book.project.name}} cluster nodes are allowed to boot concurrenty.
When {{book.project.name}} server instance boots up it may do some database migration, importing, or first time initializations.
A DB lock is used to prevent start actions from conflicting ith one another when cluster nodes boot up concurrently.
2016-04-28 22:25:54 +00:00
2016-04-29 20:12:12 +00:00
By default, the maximum timeout for this lock is 900 seconds. If a node is waiting on this lock for more than the timeout
it will fail to boot. This lock is checked every 2 seconds by default.
2016-04-28 22:25:54 +00:00
Typically you won't need to increase/decrease the default value, but just in case it's possible to configure it in `keycloak-server.json`:
[source,json]
----
"dblock": {
"jpa": {
"lockWaitTimeout": 900,
"lockRecheckTime": 2
}
}
----
2016-04-28 22:38:20 +00:00
{% if book.community %}
If you are using Mongo DB replace `jpa` with `mongo`.
{% endif %}
2016-04-28 22:25:54 +00:00