-
Notifications
You must be signed in to change notification settings - Fork 156
/
Copy pathconfiguration.yaml
100 lines (99 loc) · 4.11 KB
/
configuration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
---
kind: ConfigMap
apiVersion: v1
metadata:
name: rss-configuration
namespace: kube-system
data:
coordinator.conf: |-
rss.coordinator.app.expired 60000
rss.coordinator.exclude.nodes.file.path /data/rssadmin/rss/coo
rss.coordinator.server.heartbeat.timeout 30000
rss.jetty.http.port 19996
rss.rpc.server.port 19997
log4j2.xml: |-
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN" monitorInterval="30">
<Appenders>
<Console name="console" target="SYSTEM_ERR">
<PatternLayout pattern="[%d{yyyy-MM-dd HH:mm:ss.SSS}] [%t] [%p] %c{1}.%M - %m%n%ex"/>
</Console>
<RollingFile name="RollingAppender" fileName="${sys:log.path}" filePattern="${sys:log.path}.%i">
<PatternLayout pattern="[%d{yyyy-MM-dd HH:mm:ss.SSS}] [%t] [%p] %c{1}.%M - %m%n%ex"/>
<Policies>
<SizeBasedTriggeringPolicy size="2GB"/>
</Policies>
<DefaultRolloverStrategy max="10"/>
</RollingFile>
</Appenders>
<Loggers>
<Root level="info">
<AppenderRef ref="RollingAppender"/>
</Root>
<Logger name="io.grpc.netty.shaded.io.grpc.netty" level="info" additivity="false">
<AppenderRef ref="RollingAppender"/>
</Logger>
<Logger name="org.apache.hadoop" level="info" additivity="false">
<AppenderRef ref="RollingAppender"/>
</Logger>
<Logger name="org.eclipse.jetty" level="info" additivity="false">
<AppenderRef ref="RollingAppender"/>
</Logger>
</Loggers>
</Configuration>
server.conf: |-
# these configurations in comments are generated by operator automatically
# rss.coordinator.quorum
# rss.jetty.http.port
# rss.rpc.server.port
# rss.storage.basePath
rss.rpc.executor.size 500
rss.rpc.message.max.size 1073741824
rss.server.app.expired.withoutHeartbeat 120000
rss.server.buffer.capacity 60g
rss.server.commit.timeout 600000
rss.server.disk.capacity 3g
rss.server.event.size.threshold.l1 128m
rss.server.event.size.threshold.l2 192m
rss.server.event.size.threshold.l3 256m
rss.server.flush.cold.storage.threshold.size 128m
rss.server.flush.thread.alive 6
rss.server.flush.localfile.threadPool.size 12
rss.server.flush.hadoop.threadPool.size 60
rss.server.hadoop.dfs.client.socket-timeout 15000
rss.server.hadoop.dfs.replication 2
rss.server.hdfs.base.path hdfs://${your-hdfs-path}
rss.server.health.check.enable false
rss.server.heartbeat.interval 10000
rss.server.memory.shuffle.highWaterMark.percentage 70.0
rss.server.memory.shuffle.lowWaterMark.percentage 10.0
rss.server.pending.event.timeoutSec 600
rss.server.preAllocation.expired 120000
rss.server.read.buffer.capacity 5g
rss.server.shuffle.expired.timeout.ms 120000
rss.server.write.retry.max 2
rss.storage.type MEMORY_LOCALFILE
rss-env.sh: |-
#!/usr/bin/env bash
set -o pipefail
set -o nounset # exit the script if you try to use an uninitialised variable
set -o errexit # exit the script if any statement returns a non-true return value
HADOOP_HOME="/data/rssadmin/hadoop"
RUNNER="${JAVA_HOME}/bin/java"
JPS="${JAVA_HOME}/bin/jps"