Skip to content

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

zone:
    id: '000000000000000000000000'

Type: String

Default value: 000000000000000000000000

name

Description

Name of node manager's zone.

Key

zone:
    name: '000000000000000000000000'

Type: String

Default value: 000000000000000000000000

node

id

Description

Id of node manager.

Key

node:
    id: '000000000000000000000000'

Type: String

Default value: auto-generated id

name

Description

Name of node manager.

Key

node:
    name: '000000000000000000000000'

Type: String

Default value: auto-generated id

applicationManager

version

Description

Version of application manager.

Key

applicationManager:
    version: '1.0.0'

Type: String

Default value: 1.0.0

appDirectory

Description

Directory where applications will be stored.

Key

applicationManager:
    appDirectory: 'app'

Type: String

Default value: app

isStartEmbeddedApp

Description

If true, embedded applications will be started, after the startup.

Key

applicationManager:
    isStartEmbeddedApp: true

Type: Boolean

Default value: true

entryPointManager

name

Description

Name of entry point manager.

Key

entryPointManager:
    name: 'entryPointManager'

Type: String

Default value: entryPointManager

version

Description

Version of entry point manager.

Key

entryPointManager:
    version: '1.0.0'

Type: String

Default value: 1.0.0

entryPoints

Description

List of entry points.

Key

entryPointManager:
    entryPoints:

Type: Array of entry points

eventLogManager

version

Description

Version of event log manager.

Key

eventLogManager:
    version: '1.0.0'

Type: String

Default value: 1.0.0

howOftenCheckingExpireTime

Description

Time between checking if log expired, in milliseconds.

Key

eventLogManager:
    howOftenCheckingExpireTime: 5000

Type: Integer

Default value: 5000

logExpireTime

Description

Time after the log expires, in milliseconds.

Key

eventLogManager:
    logExpireTime: 60000

Type: Integer

Default value: 60000

maximumSizeInMegabytes

Description

Maximum size of logs, in megabytes.

Key

eventLogManager:
    maximumSizeInMegabytes: 5

Type: Integer

Default value: 5

osProcessProviderBase

version

Description

Version of os process provider base.

Key

oSProcessProviderBase:
    version: '1.0.0'

Type: String

Default value: 1.0.0

waitAfterStopOperationTimeInMillis

Description

Waiting time after stop operation, in milliseconds.

Key

oSProcessProviderBase:
    waitAfterStopOperationTimeInMillis: 6000

Type: Integer

Default value: 6000

readStreamsWaitOnStartCommandExecutionTimeInMillis

Description

Time after which the application is considered to be started. You can also use success line.

Key

oSProcessProviderBase:
    readStreamsWaitOnStartCommandExecutionTimeInMillis: 90000

Type: Integer

Default value: 90000

readStreamsWaitOnStopCommandExecutionTimeInMillis

Description

Time after which the application is considered to be stopped.

Key

oSProcessProviderBase:
    readStreamsWaitOnStopCommandExecutionTimeInMillis: 15000

Type: Integer

Default value: 90000

readStreamsWaitOnTerminateCommandExecutionTimeInMillis

Description

Time after which the application is considered to be terminated.

Key

oSProcessProviderBase:
    readStreamsWaitOnTerminateCommandExecutionTimeInMillis: 40000

Type: Integer

Default value: 40000

readStreamsWaitOnCommandExecutionTimeInMillis

Description

Time after which the command executed on application is considered to be finished.

Key

oSProcessProviderBase:
    readStreamsWaitOnCommandExecutionTimeInMillis: 10000

Type: Integer

Default value: 10000

processBufferStartSizeInMB

Description

Size of process buffer start size in Megabytes.

Key

oSProcessProviderBase:
    processBufferStartSizeInMB: 4

Type: Integer

Default value: 4

oSProcessProviderDocker

version

Description

Version of os process provider docker.

Key

oSProcessProviderDocker:
    version: '1.0.0'

Type: String

Default value: 1.0.0

logging

enabled

Description

Enables logging.

Key

oSProcessProviderDocker:
    logging:
        enabled: false

Type: Boolean

Default value: false

enabled

Description

Forwards docker logs port.

Key

oSProcessProviderDocker:
    logging:
        forwardPort: 24224

Type: Integer

Default value: 24224

oSProcessProviderGeneric

version

Description

Version of os process provider generic.

Key

oSProcessProviderGeneric:
    version: '1.0.0'

Type: String

Default value: 1.0.0

oSProcessProviderJVM

version

Description

Version of os process provider jvm.

Key

oSProcessProviderJVM:
    version: '1.0.0'

Type: String

Default value: 1.0.0

placeHolderManager

version

Description

Version of placeholder manager.

Key

placeHolderManager:
    version: '1.0.0'

Type: String

Default value: 1.0.0

relativePathToLogs

Description

Relative paths to logs directories.

Key

placeHolderManager:
    relativePathToLogs: 'log,app'

Type: String

Default value: log,app

relativePathToApps

Description

Relative path to applications directory.

Key

placeHolderManager:
    relativePathToApps: 'app'

Type: String

Default value: app

selfHealingManager

version

Description

Version of tcp port manager.

Key

selfHealingManager:
    version: '1.0.0'

Type: String

Default value: 1.0.0

howOftenCheckingProcess

Description

Interval between checking process, in milliseconds.

Key

selfHealingManager:
    howOftenCheckingProcess: 5000

Type: Integer

Default value: 5000

restartOSProcessDelay

Description

Delay after os process restart, in milliseconds.

Key

selfHealingManager:
    restartOSProcessDelay: 0

Type: Integer

Default value: 0

checkOsProcesses

Description

If true, self healing manager will check the os processes.

Key

selfHealingManager:
    checkOsProcesses: true

Type: Boolean

Default value: true

checkOsProcesses: true

maxTimeInMillisecondsToFixProcess

Description

Maximum time in milliseconds for trying to fix process using self healing.

Key

selfHealingManager:
    maxTimeInMillisecondsToFixProcess: 1800000

Type: Integer

Default value: 1800000

tcpPortManager

version

Description

Version of tcp port manager.

Key

tcpPortManager:
    version: '1.0.0'

Type: String

Default value: 1.0.0

portRange

min

Description

Lower value of the port range.

Key

tcpPortManager:
    portRange:
        min: 10000

Type: Integer

Default value: 10000

max

Description

Upper value of the port range.

Key

tcpPortManager:
    portRange:
        max: 20000

Type: Integer

Default value: 20000

transferManager

version

Description

Version of transfer manager.

Key

transferManager:
    version: '1.0.0'

Type: String

Default value: 1.0.0

chunkSize

Description

Files chunk size.

Key

transferManager:
    chunkSize: 131072

Type: Integer

Default value: 131072

uploadAppDirectory

Description

Path to application upload directory.

Key

transferManager:
    uploadAppDirectory: 'upload-app'

Type: String

Default value: upload-app

uploadNodeDirectory

Description

Path to node upload directory.

Key

transferManager:
    uploadNodeDirectory: 'upload-node'

Type: String

Default value: upload-node

resourceManager

version

Description

Version of resource manager.

Key

resourceManager:
    version: '1.0.0'

Type: String

Default value: 1.0.0

isActive

Description

If false, resourceManager will not be activated.

Key

resourceManager:
    isActive: true

Type: Boolean

Default value: true

isBackwardCompatibilityToOCC1

Description

If false, resourceManager will not be compatible with the OCC 1.x.

Key

resourceManager:
    isBackwardCompatibilityToOCC1: true

Type: Boolean

Default value: true

register

urls

Description

The URLs where the node will try to register.

Key

resourceManager:
  register:
    urls:
        - 'http://localhost:8050/onteon-api-access/api/nodes/register'
        - 'http://localhost:8051/onteon-api-access/api/nodes/register'

Type: String

Default value: http://127.0.0.1:8050/onteon-api-access/api/nodes/register

probeAmount

Description

Number of registration attempts.

Key

resourceManager:
  register:
    probeAmount: 5

Type: Integer

Default value: 5

waitTime

Description

Delay between attempts in milliseconds.

Key

resourceManager:
  register:
    waitTime: 20000

Type: Integer

Default value: 20000

nodeApiPort

Description

Node api port.

Key

resourceManager:
  register:
    nodeApiPort: 8030

Type: Integer

Default value: 8030

serviceRepositoryManager

version

Description

Version of Service Repository Manager.

Key

serviceRepositoryManager:
    version: '1.0.0'

Type: String

Default value: 1.0.0

localIp

Description

Local ip address used when application is running on local node.

Key

serviceRepositoryManager:
    localIp: '127.0.0.1'

Type: String

Default value: 127.0.0.1

healthCheckInterval

Description

Interval between health checks, in milliseconds.

Key

serviceRepositoryManager:
    healthCheckInterval: 1000

Type: Integer

Default value: 1000

timeWaitAfterInstanceUnregister

Description

Waiting time after unregistering instance, in milliseconds.

Key

serviceRepositoryManager:
    timeWaitAfterInstanceUnregister: 45000

Type: Integer

Default value: 45000

isRunHealthCheckLoop

Description

Defines, whether the health check loop should be run.

Key

serviceRepositoryManager:
    isRunHealthCheckLoop: true

Type: Boolean

Default value: true

taskManager

version

Description

Version of Task Manager.

Key

taskManager:
    version: '1.0.0'

Type: String

Default value: 1.0.0

tasks

Description

List of tasks to be executed.

Key

taskManager:
    tasks:
        - expression: '0 0/5 * * * ?'#Every 5 minutes, every hour, every day
        file: 'tasks/logrotate.sh'

Type: List

expression

Description

Cron expression for the task

Key

taskManager:
    tasks:
        - expression: '0 0/5 * * * ?'#Every 5 minutes, every hour, every day

Type: String

file

Description

Path to the executable file

Key

taskManager:
    tasks:
        - ...
        file: 'tasks/logrotate.sh'

Type: String

stateManager

version

Description

Version of State Manager.

Key

stateManager:
    version: '1.0.0'

Type: String

Default value: 1.0.0

isStoreState

Description

Whether to store applications and instances state in the file.

Key

stateManager:
    isStoreState: false

Type: Boolean

Default value: false

appStateFile

Description

Path to the file storing application state.

Key

stateManager:
    appStateFile: 'app_state.bin'

Type: String

Default value: app_state.bin

appStateHumanReadableFile

Description

Path to the file storing application state in human readable format.

Key

stateManager:
    appStateHumanReadableFile: 'app_state.txt'

Type: String

Default value: app_state.txt

localStoreFile

Description

Name of the file to store information, when the isStoreState is set to true.

Key

stateManager:
    localStoreFile: 'local-store.yml'

Type: String

Default value: local-store.yml

sslManager

version

Description

Version of SSL Manager.

Key

sslManager:
    version: '1.0.0'

Type: String

Default value: 1.0.0

openssl

path

Description

Path to the private keys.

Key

sslManager:
  openssl:
    path: './app-bin/onteon-openssl/bin'

Type: String

Default value: ./app-bin/onteon-openssl/bin

certificates

path

Description

Path do the X.509 certificates

Key

sslManager:
  certificates:
    path: './ssl/certificates'

Type: String

Default value: ./ssl/certificates