Skip to content

Commit

Permalink
[incubator/druid] modify the default value by nano-quickstart to decr…
Browse files Browse the repository at this point in the history
…ease memory cost (helm#23044)

* change the default setting to nano quickstart

Signed-off-by: AWaterColorPen <[email protected]>

* change the comment to adapt nano quickstart

Signed-off-by: AWaterColorPen <[email protected]>
Signed-off-by: Miguel Mingorance <[email protected]>
  • Loading branch information
AWaterColorPen authored and Miguel Mingorance committed Aug 28, 2020
1 parent c4a930e commit f881fe9
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 32 deletions.
2 changes: 1 addition & 1 deletion incubator/druid/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 0.18.1
description: Apache Druid is a high performance real-time analytics database.
name: druid
version: 0.2.6
version: 0.2.7
home: https://druid.apache.org/
icon: https://druid.apache.org/img/favicon.png
maintainers:
Expand Down
74 changes: 43 additions & 31 deletions incubator/druid/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,25 @@ configMap:

## Define the key value pairs in the configmap
configVars:
DRUID_XMX: 1g
DRUID_XMS: 1g
DRUID_MAXNEWSIZE: 250m
DRUID_NEWSIZE: 250m
DRUID_MAXDIRECTMEMORYSIZE: 10000m
## DRUID env vars. ref: https://github.com/apache/druid/blob/master/distribution/docker/druid.sh#L29
# DRUID_LOG_LEVEL: "warn"
# DRUID_LOG4J: <?xml version="1.0" encoding="UTF-8" ?><Configuration status="WARN"><Appenders><Console name="Console" target="SYSTEM_OUT"><PatternLayout pattern="%d{ISO8601} %p [%t] %c - %m%n"/></Console></Appenders><Loggers><Root level="info"><AppenderRef ref="Console"/></Root><Logger name="org.apache.druid.jetty.RequestLog" additivity="false" level="DEBUG"><AppenderRef ref="Console"/></Logger></Loggers></Configuration>
DRUID_USE_CONTAINER_IP: "true"
druid_processing_numThreads: "3"

## Druid Common Configurations. ref: https://druid.apache.org/docs/latest/configuration/index.html#common-configurations
druid_extensions_loadList: '["druid-histogram", "druid-datasketches", "druid-lookups-cached-global", "postgresql-metadata-storage"]'
druid_metadata_storage_type: postgresql
druid_metadata_storage_connector_connectURI: jdbc:postgresql://postgres:5432/druid
druid_metadata_storage_connector_user: druid
druid_metadata_storage_connector_password: druid
druid_coordinator_balancer_strategy: cachingCost
druid_indexer_runner_javaOptsArray: '["-server", "-Xmx1g", "-Xms1g", "-XX:MaxDirectMemorySize=3g", "-Duser.timezone=UTC", "-Dfile.encoding=UTF-8", "-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager"]'
druid_indexer_fork_property_druid_processing_buffer_sizeBytes: '268435456'
druid_storage_type: local
druid_indexer_logs_type: file
druid_indexer_logs_directory: /opt/data/indexing-logs

## Druid Emitting Metrics. ref: https://druid.apache.org/docs/latest/configuration/index.html#emitting-metrics
druid_emitter: noop
druid_emitter_logging_logLevel: debug
druid_emitter_http_recipientBaseUrl: http://druid_exporter_url:druid_exporter_port/druid
DRUID_LOG4J: <?xml version="1.0" encoding="UTF-8" ?><Configuration status="WARN"><Appenders><Console name="Console" target="SYSTEM_OUT"><PatternLayout pattern="%d{ISO8601} %p [%t] %c - %m%n"/></Console></Appenders><Loggers><Root level="info"><AppenderRef ref="Console"/></Root><Logger name="org.apache.druid.jetty.RequestLog" additivity="false" level="DEBUG"><AppenderRef ref="Console"/></Logger></Loggers></Configuration>

gCloudStorage:
enabled: false
Expand All @@ -50,7 +47,12 @@ broker:
serviceType: ClusterIP

config:
JAVA_OPTS: "-Xms2G -Xmx2G -XX:MaxDirectMemorySize=8g"
DRUID_XMX: 512m
DRUID_XMS: 512m
DRUID_MAXDIRECTMEMORYSIZE: 400m
druid_processing_buffer_sizeBytes: '50000000'
druid_processing_numMergeBuffers: 2
druid_processing_numThreads: 1
# druid_monitoring_monitors: '["org.apache.druid.client.cache.CacheMonitor", "org.apache.druid.server.metrics.QueryCountStatsMonitor"]'

ingress:
Expand All @@ -69,10 +71,10 @@ broker:
resources: {}
# limits:
# cpu: 1
# memory: 8Gi
# memory: 1Gi
# requests:
# cpu: 250m
# memory: 4Gi
# memory: 512Mi

nodeSelector: {}

Expand All @@ -92,7 +94,9 @@ coordinator:
serviceType: ClusterIP

config:
JAVA_OPTS: "-Xms1G -Xmx1G"
DRUID_XMX: 256m
DRUID_XMS: 256m
druid_coordinator_balancer_strategy: cachingCost
# druid_monitoring_monitors: '["org.apache.druid.server.metrics.TaskCountStatsMonitor"]'

ingress:
Expand All @@ -111,7 +115,7 @@ coordinator:
resources: {}
# limits:
# cpu: 500m
# memory: 2Gi
# memory: 1Gi
# requests:
# cpu: 250m
# memory: 512Mi
Expand Down Expand Up @@ -168,8 +172,14 @@ historical:
serviceType: ClusterIP

config:
JAVA_OPTS: "-Xms2G -Xmx2G -XX:MaxDirectMemorySize=8g"
DRUID_XMX: 512m
DRUID_XMS: 512m
DRUID_MAXDIRECTMEMORYSIZE: 400m
druid_processing_buffer_sizeBytes: '50000000'
druid_processing_numMergeBuffers: 2
druid_processing_numThreads: 1
# druid_monitoring_monitors: '["org.apache.druid.client.cache.CacheMonitor", "org.apache.druid.server.metrics.HistoricalMetricsMonitor", "org.apache.druid.server.metrics.QueryCountStatsMonitor"]'
# druid_segmentCache_locations: '[{"path":"/var/druid/segment-cache","maxSize":300000000000}]'

ingress:
enabled: false
Expand Down Expand Up @@ -200,15 +210,14 @@ historical:

resources: {}
# limits:
# cpu: 1
# memory: 8Gi
# cpu: 2
# memory: 2Gi
# requests:
# cpu: 250m
# memory: 4Gi
# cpu: 500m
# memory: 512Mi

## (dict) If specified, apply these annotations to each master Pod
podAnnotations: {}
# example: master-foo

podDisruptionBudget:
enabled: false
Expand All @@ -228,8 +237,10 @@ middleManager:
serviceType: ClusterIP

config:
JAVA_OPTS: "-Xms1G -Xmx1G"
# druid_monitoring_monitors: '["org.apache.druid.java.util.metrics.SysMonitor"]'
DRUID_XMX: 64m
DRUID_XMS: 64m
druid_indexer_runner_javaOptsArray: '["-server", "--Xms256m", "-Xmx256m", "-XX:MaxDirectMemorySize=300m", "-Duser.timezone=UTC", "-Dfile.encoding=UTF-8", "-XX:+ExitOnOutOfMemoryError", "-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager"]'
druid_indexer_fork_property_druid_processing_buffer_sizeBytes: '25000000'

autoscaling:
enabled: false
Expand Down Expand Up @@ -279,14 +290,13 @@ middleManager:
resources: {}
# limits:
# cpu: 500m
# memory: 2Gi
# memory: 1Gi
# requests:
# cpu: 250m
# memory: 512Mi
# memory: 256Mi

## (dict) If specified, apply these annotations to each master Pod
podAnnotations: {}
# example: master-foo

podDisruptionBudget:
enabled: false
Expand All @@ -306,7 +316,9 @@ router:
serviceType: ClusterIP

config:
JAVA_OPTS: "-Xms1G -Xmx1G"
DRUID_XMX: 128m
DRUID_XMS: 128m
DRUID_MAXDIRECTMEMORYSIZE: 128m

ingress:
enabled: false
Expand All @@ -323,11 +335,11 @@ router:

resources: {}
# limits:
# cpu: 500m
# memory: 2Gi
# requests:
# cpu: 250m
# memory: 512Mi
# memory: 256Mi
# requests:
# cpu: 100m
# memory: 128Mi

nodeSelector: {}

Expand Down

0 comments on commit f881fe9

Please sign in to comment.