Skip to content

Commit

Permalink
Added docker configs
Browse files Browse the repository at this point in the history
  • Loading branch information
santanusinha committed Jun 24, 2024
1 parent 800d345 commit c80c275
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 0 deletions.
56 changes: 56 additions & 0 deletions drove-controller/configs/docker.yml
Original file line number Diff line number Diff line change
@@ -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
58 changes: 58 additions & 0 deletions drove-executor/configs/docker.yml
Original file line number Diff line number Diff line change
@@ -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}



0 comments on commit c80c275

Please sign in to comment.