From c80c2752baa4686b5c03d249faa3265f317083d3 Mon Sep 17 00:00:00 2001 From: Santanu Sinha Date: Mon, 24 Jun 2024 08:52:50 +0530 Subject: [PATCH] Added docker configs --- drove-controller/configs/docker.yml | 56 ++++++++++++++++++++++++++++ drove-executor/configs/docker.yml | 58 +++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 drove-controller/configs/docker.yml create mode 100644 drove-executor/configs/docker.yml diff --git a/drove-controller/configs/docker.yml b/drove-controller/configs/docker.yml new file mode 100644 index 00000000..d85568c0 --- /dev/null +++ b/drove-controller/configs/docker.yml @@ -0,0 +1,56 @@ +server: + applicationConnectors: + - type: http + port: 4000 + adminConnectors: + - type: http + port: 4001 + applicationContextPath: / + requestLog: + appenders: + - type: console + timeZone: ${DROVE_TIMEZONE} + gzip: + syncFlush: true + +logging: + level: INFO + loggers: + com.phonepe.drove: ${DROVE_LOG_LEVEL} + + appenders: + - type: console + threshold: TRACE + timeZone: ${DROVE_TIMEZONE} + logFormat: "%(%-5level) [%date] [%logger{0} - %X{appId}] %message%n" + +zookeeper: + connectionString: ${ZK_CONNECTION_STRING} + +clusterAuth: + secrets: + - nodeType: CONTROLLER + secret: ${DROVE_CONTROLLER_SECRET} + - nodeType: EXECUTOR + secret: ${DROVE_EXECUTOR_SECRET} + +userAuth: + enabled: true + users: + - username: admin + password: ${DROVE_ADMIN_PASSWORD} + role: EXTERNAL_READ_WRITE + - username: guest + password: ${DROVE_GUEST_PASSWORD} + role: EXTERNAL_READ_ONLY + +instanceAuth: + secret: ${DROVE_INSTANCE_AUTH_SECRET} + +options: + maxStaleInstancesCount: 3 + staleCheckInterval: 1m + staleAppAge: 1d + staleInstanceAge: 18h + staleTaskAge: 1d + clusterOpParallelism: 4 diff --git a/drove-executor/configs/docker.yml b/drove-executor/configs/docker.yml new file mode 100644 index 00000000..e84e4300 --- /dev/null +++ b/drove-executor/configs/docker.yml @@ -0,0 +1,58 @@ +server: + applicationConnectors: + - type: http + port: 3000 + adminConnectors: + - type: http + port: 3001 + applicationContextPath: / + requestLog: + appenders: + - type: console + timeZone: ${DROVE_TIMEZONE} + +logging: + level: INFO + loggers: + com.phonepe.drove: ${DROVE_LOG_LEVEL} + + appenders: + - type: console + threshold: TRACE + timeZone: ${DROVE_TIMEZONE} + logFormat: "%(%-5level) [%date] [%logger{0} - %X{instanceLogId}] %message%n" + + - type: drove + logPath: "/drove/logs" + archivedLogFileSuffix: "%d" + archivedFileCount: 3 + threshold: TRACE + timeZone: ${DROVE_TIMEZONE} + logFormat: "%(%-5level) | %-23date | %-30logger{0} | %message%n" + archive: true + +options: + cacheImages: true + maxOpenFiles: 10_000 + logBufferSize: 5m + cacheFileSize: 10m + cacheFileCount: 3 + +zookeeper: + connectionString: ${ZK_CONNECTION_STRING} + +resources: + osCores: [ 0, 1 ] + exposedMemPercentage: 60 + disableNUMAPinning: ${DROVE_DISABLE_NUMA_PINNING} + enableNvidiaGpu: ${DROVE_ENABLE_NVIDIA_GPU} + +clusterAuth: + secrets: + - nodeType: CONTROLLER + secret: ${DROVE_CONTROLLER_SECRET} + - nodeType: EXECUTOR + secret: ${DROVE_EXECUTOR_SECRET} + + +