...
cfg:set org.onosproject.store.cluster.impl.DistributedLeadershipStore electionTimeoutMillis
Sets the election timeout for all leadership elections, including mastership elections
Atomix 3.x
Persistent storage is critical for the efficient operation of Atomix. In containerized environments where storage is ephemeral unless otherwise specified, volumes should be used to provide efficient, persistent storage to local disks. To configure the location of Atomix data storage, either specify the directory in the partitionGroups
configuration or specify a --data-dir
when running the Atomix agent.
In addition to storage, Atomix provides a variety of configuration options that can be used to tune the cluster:
cluster.messaging.connectionPoolSize
Sets the maximum number of simultaneous connections that can be opened to each peer. Atomix will partition communication across connections. Defaults to8
To override Atomix agent configuration options, simply modify the atomix.conf file and specify the desired property.
Async Logging
The default logging configuration for both ONOS 1.x (log4j) and ONOS 2.x (log4j2) can in some environments block multiple threads for long periods of time due to a single lock shared by all loggers. These blocks can lead to timeouts, mastership changes, and other problems. In ONOS 2.x, to avoid extensive blocking due to loggers, we recommend using AsyncLogger
s.
...