Skip to content

Commit f7dc8ca

Browse files
Merge branch 'main' into 01115-D-portforward-quit-task
2 parents 7f6678f + 522b75d commit f7dc8ca

14 files changed

+1457
-89
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version: 3
2+
includes:
3+
main:
4+
taskfile: ../Taskfile.examples.yml
5+
flatten: true
6+
vars:
7+
solo_home_override_dir: "/home/gke1"
8+
env:
9+
SOLO_NETWORK_SIZE: 4
10+
SOLO_NAMESPACE: solo-gke1
11+
SOLO_CHART_VERSION: 0.42.3
12+
# CONSENSUS_NODE_VERSION: v0.58.0
13+
VALUES_FLAG: "--values-file {{.USER_WORKING_DIR}}/init-containers-values.yaml"
14+
SETTINGS_FLAG: "--settings-txt {{.USER_WORKING_DIR}}/settings.txt"
15+
SOLO_HOME: "{{.solo_home_override_dir}}"
16+
LOG4J2_FLAG: "--log4j2-xml {{.USER_WORKING_DIR}}/log4j2.xml"
17+
APPLICATION_PROPERTIES_FLAG: "--application-properties {{.USER_WORKING_DIR}}/application.properties"
18+
HEDERA_SERVICES_ROOT: "/home/gke1/workspaces/10nodes/hedera-services"
19+
LOCAL_BUILD_FLAG: "--local-build-path {{.HEDERA_SERVICES_ROOT}}/hedera-node/data"
20+
GENESIS_THROTTLES_FLAG: "--genesis-throttles-file {{.USER_WORKING_DIR}}/throttles.json"
21+
# SOLO_CHARTS_DIR_FLAG: "-d /Users/user/source/solo-charts/charts"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
hedera.config.version=0
2+
ledger.id=0x01
3+
netty.mode=TEST
4+
contracts.chainId=298
5+
hedera.recordStream.logPeriod=1
6+
balances.exportPeriodSecs=400
7+
files.maxSizeKb=2048
8+
hedera.recordStream.compressFilesOnCreation=true
9+
balances.compressOnCreation=true
10+
contracts.maxNumWithHapiSigsAccess=0
11+
autoRenew.targetTypes=
12+
nodes.gossipFqdnRestricted=false
13+
hedera.profiles.active=TEST
14+
# TODO: this is a workaround until prepareUpgrade freeze will recalculate the weight prior to writing the config.txt
15+
staking.periodMins=1
16+
nodes.updateAccountIdAllowed=true
17+
blockStream.streamMode=BOTH
18+
19+
# Override the throttle definitions to be used during genesis.
20+
# This override is required because release <= 0.58.x use a different default path.
21+
bootstrap.throttleDefsJson.resource=data/config/genesis-throttles.json
22+
23+
#small GKE specific:
24+
cache.warmThreads=6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
# hedera node configuration
2+
hedera:
3+
initContainers:
4+
- name: init-hedera-node
5+
image: busybox:stable-musl
6+
command: ["sh", "-c", "cp -r /etc /data-saved"]
7+
volumeMounts:
8+
- name: hgcapp-data-saved
9+
mountPath: /data-saved
10+
nodes:
11+
- name: node1
12+
nodeId: 0
13+
accountId: 0.0.3
14+
root:
15+
resources:
16+
requests:
17+
cpu: 2
18+
memory: 16Gi
19+
limits:
20+
cpu: 4
21+
memory: 31Gi
22+
- name: node2
23+
nodeId: 1
24+
accountId: 0.0.4
25+
root:
26+
resources:
27+
requests:
28+
cpu: 2
29+
memory: 16Gi
30+
limits:
31+
cpu: 4
32+
memory: 31Gi
33+
- name: node3
34+
nodeId: 2
35+
accountId: 0.0.5
36+
root:
37+
resources:
38+
requests:
39+
cpu: 2
40+
memory: 16Gi
41+
limits:
42+
cpu: 4
43+
memory: 31Gi
44+
- name: node4
45+
nodeId: 3
46+
accountId: 0.0.6
47+
root:
48+
resources:
49+
requests:
50+
cpu: 2
51+
memory: 16Gi
52+
limits:
53+
cpu: 4
54+
memory: 31Gi
55+
defaults:
56+
haproxy:
57+
serviceType: NodePort
58+
envoyProxy:
59+
loadBalancerEnabled: true
60+
sidecars:
61+
recordStreamUploader:
62+
resources:
63+
requests:
64+
cpu: 100m
65+
memory: 100Mi
66+
limits:
67+
cpu: 150m
68+
memory: 200Mi
69+
eventStreamUploader:
70+
resources:
71+
requests:
72+
cpu: 100m
73+
memory: 100Mi
74+
limits:
75+
cpu: 150m
76+
memory: 200Mi
77+
recordStreamSidecarUploader:
78+
resources:
79+
requests:
80+
cpu: 100m
81+
memory: 100Mi
82+
limits:
83+
cpu: 150m
84+
memory: 200Mi
85+
blockstreamUploader:
86+
resources:
87+
requests:
88+
cpu: 100m
89+
memory: 200Mi
90+
limits:
91+
cpu: 150m
92+
memory: 400Mi
93+
root:
94+
resources:
95+
requests:
96+
cpu: 2
97+
memory: 16Gi
98+
limits:
99+
cpu: 4
100+
memory: 31Gi
101+
extraEnv:
102+
- name: JAVA_OPTS
103+
value: "-XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:ZAllocationSpikeTolerance=2 -XX:ConcGCThreads=4 -XX:MaxDirectMemorySize=4g -XX:MetaspaceSize=100M -XX:+ZGenerational -Xlog:gc*:gc.log --add-opens java.base/jdk.internal.misc=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED -Dio.netty.tryReflectionSetAccessible=true"
104+
- name: JAVA_HEAP_MIN
105+
value: "16g"
106+
- name: JAVA_HEAP_MAX
107+
value: "19g"
108+
- name: MALLOC_ARENA_MAX
109+
value: "1"
110+
deployment:
111+
podAnnotations: {}
112+
podLabels: {}
113+
nodeSelector:
114+
solo.hashgraph.io/role: "consensus-node"
115+
tolerations:
116+
- key: "solo.hashgraph.io/role"
117+
operator: "Equal"
118+
value: "consensus-node"
119+
effect: "NoSchedule"
120+
minio-server:
121+
secrets:
122+
# This secret has [accessKey, secretKey] and will be randomly generated by helm
123+
existingSecret: minio-secrets
124+
tenant:
125+
buckets:
126+
- name: solo-streams
127+
- name: solo-backups
128+
name: minio
129+
pools:
130+
- servers: 1
131+
name: pool-1
132+
volumesPerServer: 1
133+
size: 512Gi
134+
storageClassName: standard-rwo
135+
nodeSelector: {}
136+
configuration:
137+
name: minio-secrets
138+
certificate:
139+
requestAutoCert: false
140+
environment:
141+
MINIO_BROWSER_LOGIN_ANIMATION: off # https://github.com/minio/console/issues/2539#issuecomment-1619211962
142+
haproxyDeployment:
143+
affinity:
144+
podAntiAffinity:
145+
requiredDuringSchedulingIgnoredDuringExecution:
146+
- labelSelector:
147+
matchExpressions:
148+
- key: solo.hedera.com/type
149+
operator: In
150+
values:
151+
- network-node
152+
topologyKey: kubernetes.io/hostname
153+
envoyDeployment:
154+
affinity:
155+
podAntiAffinity:
156+
requiredDuringSchedulingIgnoredDuringExecution:
157+
- labelSelector:
158+
matchExpressions:
159+
- key: solo.hedera.com/type
160+
operator: In
161+
values:
162+
- network-node
163+
topologyKey: kubernetes.io/hostname
164+
minioDeployment:
165+
affinity:
166+
podAntiAffinity:
167+
requiredDuringSchedulingIgnoredDuringExecution:
168+
- labelSelector:
169+
matchExpressions:
170+
- key: solo.hedera.com/type
171+
operator: In
172+
values:
173+
- network-node
174+
topologyKey: kubernetes.io/hostname

0 commit comments

Comments
 (0)