...
Default Location: /var/sos-berlin.com/js7/controller/var/config/controller.conf
Standalone Controller Configuration
Code Block |
---|
language | text |
---|
title | General Standalone Controller general configuration file example: controller.conf |
---|
linenumbers | true |
---|
collapse | true |
---|
|
# Allow HTTP connections without authentication
js7.web.server.auth.public = true
|
Cluster Controller Configuration
Primary Controller Configuration
Code Block |
---|
language | text |
---|
title | Primary Controller general configuration file example: controller.conf |
---|
linenumbers | true |
---|
collapse | true |
---|
|
# Cluster configuration
js7.journal.cluster {
nodes {
Primary = "httpsCluster configuration
js7.journal.cluster {
nodes {
Primary = "https://controller-2-0-primary:4443"
Backup = "https://controller-2-0-primary:4443"
Backup = "https://controller-2-0-secondary:4443"
}
watches = [ "https://agent-2-0-primary:4443" ]
}
# Allow httpHTTP connections without authentication
js7.web.server.auth.public = true
|
- A Primary Controller instance specifies two nodes for its own URL and for the URL of the Secondary Controller (Backup).
Secondary Controller Configuration
Code Block |
---|
language | text |
---|
title | Secondary Controller general configuration file example: controller.conf |
---|
linenumbers | true |
---|
collapse | true |
---|
|
# Cluster configuration
js7.journal.cluster {
node {
is-backup = yes
}
watches = [ "https://agent-2-0-primary:4443" ]
}
# Allow HTTP connections without authentication
js7.web.server.auth.public = true
|
- A Secondary Controller instance specifies a single node to indicate that this instance starts a as standby node (Backup).
- This setting is relevant for initial operation only. It is independent from the fact which Controller instance later on will be the active one and which instance will be the standby instance.
Configuration Settings
js7.journal.cluster: Journal Cluster Settings
js7 | journal | cluster |
|
|
|
---|
|
|
| nodes |
|
|
|
|
|
| Primary | <url> |
|
|
|
| Backup | <url> |
|
|
| watches |
|
|
|
|
|
| <url> [,<url>] |
|
- This setting is used for Controllers in cluster mode only, it is not used for standalone Controller instances.
nodes
- This setting specifies the URLs of the
Primary
and Backup
(Secondary) instance. The URL includes to specify the protocol http/https, the hostname and port.
watches
- Watches are Agents in a JS7 environment that are involved in the decision about a fail-over situation. If Controller instances in a cluster are not connected to each other any longer, e.g. due to network errors, then the majority of Agents decides if a fail-over should take place.
- At least one Agent has to be specified by its URL.
js7.web.server: Authentication Settings
js7 | web | server |
|
|
|
---|
|
|
| auth | public | <bool> |
...