Onteon Node Manager - Configuration¶
Overview¶
Default configuration file path: onteon-node/conf/conf.yml.
If configuration file does not exist, the node will use the default values.
Default configuration file¶
zone:
id: '000000000000000000000000'
name: '000000000000000000000000'
node:
id: '000000000000000000000000'
name: '000000000000000000000000'
applicationManager:
version: '1.14.0'
appDirectory: 'app'
isStartEmbeddedApp: true
waitTimeBeforeClose: 3000
entryPointManager:
name: 'entryPointManager'
version: '1.1.0'
entryPoints:
- entryPoint:
name: "commandEntryPoint"
version: '1.0.0'
protocol: 'cdtp-1.0'
serializers:
- name: 'jackson-json'
seImpl: 'tech.onteon.onteon.libcomponent.serializer.impl.JacksonJsonSerializerImpl'
deImpl: 'tech.onteon.onteon.libcomponent.serializer.impl.JacksonJsonDeserializerImpl'
index: 1
server: 'tech.onteon.onteon.libcomponent.server.ont.blocking.synchronous.impl.OntBlockingSynchronousServerImpl'
#serviceProducer: 'empty'
serverSettings:
ontBlockingSynchronousServer:
version: 1.2.0
factory:
- name: 'plain'
isActive: true
- name: 'oneWay'
isActive: false
x509ServerCertificatePath: 'ssl/certificates/internal/server'
x509ServerCertificateFiles: 'certificate.pem,certificate_intermediates.pem,certificate_root_ca.pem'
rsaPKCS8ServerPrivateKeyPathToFile: 'ssl/certificates/internal/server/private_key.pem'
- name: 'twoWay'
isActive: false
x509ServerCertificatePath: 'ssl/certificates/internal/server'
x509ServerCertificateFiles: 'certificate.pem,certificate_intermediates.pem,certificate_root_ca.pem'
rsaPKCS8ServerPrivateKeyPathToFile: 'ssl/certificates/internal/server/private_key.pem'
x509ClientTrustedCertificatesPathToFile: 'ssl/certificates/internal/server/trusted_certificates.pem'
settings:
port: 8030
readTimeout: 480000
waitForFinishExecuteAllRequests: true
waitToShutdownThreadsOnStop: 1000
backlog: 256
receiveBufferSize: 1572564
isReuseAddress: true
logPeriodicOnDebug: true
serverSocketTimeout: 120000
isReuseWorkers: true
pooledWorkerTimeout: 1800000
workerPoolSize: 18
workerThreadTimeout: 1800000
destroyWorkerThreadOnTimeout: false
clientSocketKeepAliveTimeout: 120000
clientSocketReadTimeout: 90000
# chunkSize for input objects not for files chunks
chunkSize: 8192
threadPool:
queueType: 'arrayBlockingQueue'
queueLength: 1024
maxWaitingClient: 1000
computeMinMaxAutomatically: false
min: 18
max: 18
- entryPoint:
name: 'serviceRepoEntryPoint'
version: '1.0.0'
protocol: 'http-1.1'
server: 'tech.onteon.onteon.libcomponent.server.jetty.blocking.synchronous.impl.JettyBlockingSynchronousServerImpl'
serverSettings:
jettyBlockingSynchronousServer:
version: 1.0.0
settings:
port: 8031
mainContext: '/doOperation'
eventLogManager:
version: '1.2.0'
howOftenCheckingExpireTime: 5000
logExpireTime: 600000
maximumSizeInMegabytes: 5
osProcessProviderBase:
version: '1.7.0'
waitAfterStopOperationTimeInMillis: 3000
readStreamsWaitOnStartCommandExecutionTimeInMillis: 120000
readStreamsWaitOnStopCommandExecutionTimeInMillis: 40000
readStreamsWaitOnTerminateCommandExecutionTimeInMillis: 40000
readStreamsWaitOnCommandExecutionTimeInMillis: 10000
processBufferStartSizeInMB: 3
oSProcessProviderDocker:
version: '1.6.0'
readStreamsWaitOnCommandExecutionTimeInMillis: 120000
logging:
enabled: false
forwardPort: 24224
oSProcessProviderGeneric:
version: '1.3.0'
oSProcessProviderJVM:
version: '1.3.0'
placeHolderManager:
version: '1.7.0'
relativePathToLogs: 'log,app'
relativePathToApps: 'app'
selfHealingManager:
version: '1.3.2'
howOftenCheckingProcess: 5000
restartOSProcessDelay: 5000
checkOsProcesses: true
maxTimeInMillisecondsToFixProcess: 1800000
tcpPortManager:
version: '1.1.0'
portRange:
min: 10000
max: 20000
transferManager:
version: '1.8.0'
uploadAppDirectory: 'upload-app'
uploadNodeDirectory: 'upload-node'
chunkSize: 131072
resourceManager:
version: '1.9.1'
isActive: true
isBackwardCompatibilityToOCC1: true
register:
urls:
- 'http://localhost:8050/onteon-api-access/api/nodes/register'
- 'http://localhost:8051/onteon-api-access/api/nodes/register'
probeAmount: 5
waitTime: 20000
nodeApiPort: 8030
requestTimeoutInSeconds: 8
serviceRepositoryManager:
version: '1.6.0'
localIp: '127.0.0.1'
healthCheckInterval: 2000
timeWaitAfterInstanceUnregister: 2000
isRunHealthCheckLoop: true
taskManager:
version: '1.0.0'
tasks:
- expression: '0 0/5 * * * ?'#Every 5 minutes, every hour, every day
file: 'tasks/logrotate.sh'
stateManager:
version: '1.3.0'
isStoreState: false
appStateFile: 'app_state.bin'
appStateHumanReadableFile: 'app_state.txt'
localStoreFile: 'local-store.yml'
sslManager:
version: '1.0.0'
openssl:
path: './app-bin/onteon-openssl/bin'
certificates:
path: './ssl/certificates'
Configuration keys¶
zone¶
id¶
Description
Id of node manager's zone.
Key
Type: String
Default value: 000000000000000000000000
name¶
Description
Name of node manager's zone.
Key
Type: String
Default value: 000000000000000000000000
node¶
id¶
Description
Id of node manager.
Key
Type: String
Default value: auto-generated id
name¶
Description
Name of node manager.
Key
Type: String
Default value: auto-generated id
applicationManager¶
version¶
Description
Version of application manager.
Key
Type: String
Default value: 1.0.0
appDirectory¶
Description
Directory where applications will be stored.
Key
Type: String
Default value: app
isStartEmbeddedApp¶
Description
If true, embedded applications will be started, after the startup.
Key
Type: Boolean
Default value: true
entryPointManager¶
name¶
Description
Name of entry point manager.
Key
Type: String
Default value: entryPointManager
version¶
Description
Version of entry point manager.
Key
Type: String
Default value: 1.0.0
entryPoints¶
Description
List of entry points.
Key
Type: Array of entry points
eventLogManager¶
version¶
Description
Version of event log manager.
Key
Type: String
Default value: 1.0.0
howOftenCheckingExpireTime¶
Description
Time between checking if log expired, in milliseconds.
Key
Type: Integer
Default value: 5000
logExpireTime¶
Description
Time after the log expires, in milliseconds.
Key
Type: Integer
Default value: 60000
maximumSizeInMegabytes¶
Description
Maximum size of logs, in megabytes.
Key
Type: Integer
Default value: 5
osProcessProviderBase¶
version¶
Description
Version of os process provider base.
Key
Type: String
Default value: 1.0.0
waitAfterStopOperationTimeInMillis¶
Description
Waiting time after stop operation, in milliseconds.
Key
Type: Integer
Default value: 6000
readStreamsWaitOnStartCommandExecutionTimeInMillis¶
Description
Time after which the application is considered to be started. You can also use success line.
Key
Type: Integer
Default value: 90000
readStreamsWaitOnStopCommandExecutionTimeInMillis¶
Description
Time after which the application is considered to be stopped.
Key
Type: Integer
Default value: 90000
readStreamsWaitOnTerminateCommandExecutionTimeInMillis¶
Description
Time after which the application is considered to be terminated.
Key
Type: Integer
Default value: 40000
readStreamsWaitOnCommandExecutionTimeInMillis¶
Description
Time after which the command executed on application is considered to be finished.
Key
Type: Integer
Default value: 10000
processBufferStartSizeInMB¶
Description
Size of process buffer start size in Megabytes.
Key
Type: Integer
Default value: 4
oSProcessProviderDocker¶
version¶
Description
Version of os process provider docker.
Key
Type: String
Default value: 1.0.0
logging¶
enabled¶
Description
Enables logging.
Key
Type: Boolean
Default value: false
enabled¶
Description
Forwards docker logs port.
Key
Type: Integer
Default value: 24224
oSProcessProviderGeneric¶
version¶
Description
Version of os process provider generic.
Key
Type: String
Default value: 1.0.0
oSProcessProviderJVM¶
version¶
Description
Version of os process provider jvm.
Key
Type: String
Default value: 1.0.0
placeHolderManager¶
version¶
Description
Version of placeholder manager.
Key
Type: String
Default value: 1.0.0
relativePathToLogs¶
Description
Relative paths to logs directories.
Key
Type: String
Default value: log,app
relativePathToApps¶
Description
Relative path to applications directory.
Key
Type: String
Default value: app
selfHealingManager¶
version¶
Description
Version of tcp port manager.
Key
Type: String
Default value: 1.0.0
howOftenCheckingProcess¶
Description
Interval between checking process, in milliseconds.
Key
Type: Integer
Default value: 5000
restartOSProcessDelay¶
Description
Delay after os process restart, in milliseconds.
Key
Type: Integer
Default value: 0
checkOsProcesses¶
Description
If true, self healing manager will check the os processes.
Key
Type: Boolean
Default value: true
checkOsProcesses: true
maxTimeInMillisecondsToFixProcess¶
Description
Maximum time in milliseconds for trying to fix process using self healing.
Key
Type: Integer
Default value: 1800000
tcpPortManager¶
version¶
Description
Version of tcp port manager.
Key
Type: String
Default value: 1.0.0
portRange¶
min¶
Description
Lower value of the port range.
Key
Type: Integer
Default value: 10000
max¶
Description
Upper value of the port range.
Key
Type: Integer
Default value: 20000
transferManager¶
version¶
Description
Version of transfer manager.
Key
Type: String
Default value: 1.0.0
chunkSize¶
Description
Files chunk size.
Key
Type: Integer
Default value: 131072
uploadAppDirectory¶
Description
Path to application upload directory.
Key
Type: String
Default value: upload-app
uploadNodeDirectory¶
Description
Path to node upload directory.
Key
Type: String
Default value: upload-node
resourceManager¶
version¶
Description
Version of resource manager.
Key
Type: String
Default value: 1.0.0
isActive¶
Description
If false, resourceManager will not be activated.
Key
Type: Boolean
Default value: true
isBackwardCompatibilityToOCC1¶
Description
If false, resourceManager will not be compatible with the OCC 1.x.
Key
Type: Boolean
Default value: true
register¶
urls¶
Description
The URLs where the node will try to register.
Key
Type: String
Default value: http://127.0.0.1:8050/onteon-api-access/api/nodes/register
probeAmount¶
Description
Number of registration attempts.
Key
Type: Integer
Default value: 5
waitTime¶
Description
Delay between attempts in milliseconds.
Key
Type: Integer
Default value: 20000
nodeApiPort¶
Description
Node api port.
Key
Type: Integer
Default value: 8030
serviceRepositoryManager¶
version¶
Description
Version of Service Repository Manager.
Key
Type: String
Default value: 1.0.0
localIp¶
Description
Local ip address used when application is running on local node.
Key
Type: String
Default value: 127.0.0.1
healthCheckInterval¶
Description
Interval between health checks, in milliseconds.
Key
Type: Integer
Default value: 1000
timeWaitAfterInstanceUnregister¶
Description
Waiting time after unregistering instance, in milliseconds.
Key
Type: Integer
Default value: 45000
isRunHealthCheckLoop¶
Description
Defines, whether the health check loop should be run.
Key
Type: Boolean
Default value: true
taskManager¶
version¶
Description
Version of Task Manager.
Key
Type: String
Default value: 1.0.0
tasks¶
Description
List of tasks to be executed.
Key
Type: List
expression¶
Description
Cron expression for the task
Key
Type: String
file¶
Description
Path to the executable file
Key
Type: String
stateManager¶
version¶
Description
Version of State Manager.
Key
Type: String
Default value: 1.0.0
isStoreState¶
Description
Whether to store applications and instances state in the file.
Key
Type: Boolean
Default value: false
appStateFile¶
Description
Path to the file storing application state.
Key
Type: String
Default value: app_state.bin
appStateHumanReadableFile¶
Description
Path to the file storing application state in human readable format.
Key
Type: String
Default value: app_state.txt
localStoreFile¶
Description
Name of the file to store information, when the isStoreState is set to true.
Key
Type: String
Default value: local-store.yml
sslManager¶
version¶
Description
Version of SSL Manager.
Key
Type: String
Default value: 1.0.0
openssl¶
path¶
Description
Path to the private keys.
Key
Type: String
Default value: ./app-bin/onteon-openssl/bin
certificates¶
path¶
Description
Path do the X.509 certificates
Key
Type: String
Default value: ./ssl/certificates