Skip to content

Commit

Permalink
fix: Examples of performance configs for HashSphere and Latitude (#926)…
Browse files Browse the repository at this point in the history
… (#957)

Signed-off-by: Alex Kuzmin <[email protected]>
Signed-off-by: Jeromy Cannon <[email protected]>
Co-authored-by: Jeromy Cannon <[email protected]>
  • Loading branch information
alex-kuzmin-hg and jeromy-cannon authored Dec 10, 2024
1 parent 0aee1e6 commit 928148b
Show file tree
Hide file tree
Showing 6 changed files with 507 additions and 4 deletions.
33 changes: 29 additions & 4 deletions examples/custom-network-config/init-containers-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ hedera:
root:
resources:
requests:
cpu: 18000m
memory: 32000Mi
cpu: 18
memory: 256Gi
limits:
cpu: 24000m
memory: 64000Mi
cpu: 24
memory: 256Gi
- name: node6
accountId: 0.0.8
root:
Expand All @@ -81,6 +81,31 @@ hedera:
defaults:
envoyProxy:
loadBalancerEnabled: true
sidecars:
recordStreamUploader:
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 150m
memory: 200Mi
eventStreamUploader:
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 150m
memory: 200Mi
recordStreamSidecarUploader:
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 150m
memory: 200Mi
root:
resources:
requests:
Expand Down
203 changes: 203 additions & 0 deletions examples/performance-tuning/HashSphere/init-containers-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@
# hedera node configuration
hedera:
initContainers:
- name: init-hedera-node
image: busybox:stable-musl
command: ["sh", "-c", "cp -r /etc /data-saved"]
volumeMounts:
- name: hgcapp-data-saved
mountPath: /data-saved
nodes:
- name: node0
accountId: 0.0.3
root:
resources:
requests:
cpu: 2
memory: 16Gi
limits:
cpu: 4
memory: 31Gi
- name: node1
accountId: 0.0.4
root:
resources:
requests:
cpu: 2
memory: 16Gi
limits:
cpu: 4
memory: 31Gi
- name: node2
accountId: 0.0.5
root:
resources:
requests:
cpu: 2
memory: 16Gi
limits:
cpu: 4
memory: 31Gi
- name: node3
accountId: 0.0.6
root:
resources:
requests:
cpu: 2
memory: 16Gi
limits:
cpu: 4
memory: 31Gi
- name: node4
accountId: 0.0.7
root:
resources:
requests:
cpu: 2
memory: 16Gi
limits:
cpu: 4
memory: 31Gi
- name: node5
accountId: 0.0.8
root:
resources:
requests:
cpu: 2
memory: 16Gi
limits:
cpu: 4
memory: 31Gi
- name: node6
accountId: 0.0.9
root:
resources:
requests:
cpu: 2
memory: 16Gi
limits:
cpu: 4
memory: 31Gi
defaults:
envoyProxy:
loadBalancerEnabled: true
sidecars:
recordStreamUploader:
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 150m
memory: 200Mi
eventStreamUploader:
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 150m
memory: 200Mi
recordStreamSidecarUploader:
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 150m
memory: 200Mi
root:
resources:
requests:
cpu: 2
memory: 16Gi
limits:
cpu: 4
memory: 31Gi
extraEnv:
- name: JAVA_OPTS
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"
- name: JAVA_HEAP_MIN
value: "16g"
- name: JAVA_HEAP_MAX
value: "19g"
minio-server:
tenant:
pools:
- servers: 1
name: pool-1
volumesPerServer: 1
size: 500Gi
storageClassName: local-path
resources:
requests:
cpu: 0
memory: 0
limits:
cpu: 0
memory: 0
deployment:
podAnnotations: {}
podLabels: {}
nodeSelector:
solo.hashgraph.io/role: "consensus-node"
tolerations:
- key: "solo.hashgraph.io/role"
operator: "Equal"
value: "consensus-node"
effect: "NoSchedule"
minio-server:
secrets:
# This secret has [accessKey, secretKey] and will be randomly generated by helm
existingSecret: minio-secrets
tenant:
buckets:
- name: solo-streams
- name: solo-backups
name: minio
pools:
- servers: 1
name: pool-1
volumesPerServer: 1
size: 512Gi
storageClassName: standard-rwo
nodeSelector: {}
configuration:
name: minio-secrets
certificate:
requestAutoCert: false
environment:
MINIO_BROWSER_LOGIN_ANIMATION: off # https://github.com/minio/console/issues/2539#issuecomment-1619211962
haproxyDeployment:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: solo.hedera.com/type
operator: In
values:
- network-node
topologyKey: kubernetes.io/hostname
envoyDeployment:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: solo.hedera.com/type
operator: In
values:
- network-node
topologyKey: kubernetes.io/hostname
minioDeployment:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: solo.hedera.com/type
operator: In
values:
- network-node
topologyKey: kubernetes.io/hostname
47 changes: 47 additions & 0 deletions examples/performance-tuning/HashSphere/nlg-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
replicas: 1

resources:
limits:
memory: 32Gi
cpu: '32'
requests:
memory: 16Gi
cpu: '16'

nodeSelector:
solo.hashgraph.io/role: "test-clients"
tolerations:
- key: "solo.hashgraph.io/role"
operator: "Equal"
value: "test-clients"
effect: "NoSchedule"
affinity: {}

loadGenerator:
java:
maxMemory: '48g'
test:
className: com.hedera.benchmark.NftTransferLoadTest
args:
- -c
- "7"
- -a
- "1000"
- -T
- "10"
- -n
- "10"
- -S
- "hot"
- -p
- "50"
- -t
- "1m"
properties:
- '34.118.231.223\:50211=0.0.3'
- '34.118.238.41\:50211=0.0.4'
- '34.118.235.163\:50211=0.0.5'
- '34.118.233.134\:50211=0.0.6'
- '34.118.238.65\:50211=0.0.7'
- '34.118.230.205\:50211=0.0.8'
- '34.118.225.213\:50211=0.0.9'
Loading

0 comments on commit 928148b

Please sign in to comment.