benchmark: use full sync for initial validator

This commit is contained in:
mark.lin 2017-08-30 11:44:09 +08:00
parent 5a06bddfb0
commit 20bc6ec612
1 changed files with 6 additions and 5 deletions

View File

@ -28,9 +28,9 @@ spec:
"image": "{{ .Values.image.repository }}:{{ .Values.image.tag }}",
"imagePullPolicy": "{{ .Values.image.pullPolicy }}",
"command": [
"geth",
"--datadir",
"{{ .Values.volumes.chaindir.mountPath }}",
"geth",
"--datadir",
"{{ .Values.volumes.chaindir.mountPath }}",
"init",
"{{ .Values.genesis.mountPath }}/{{ .Values.genesis.fileName }}"
],
@ -53,7 +53,7 @@ spec:
"sh",
"-c",
"cp {{ .Values.ethereum.staticNodes.mountPath }}/static-nodes.json {{ .Values.volumes.chaindir.mountPath }}/ &&
mkdir -p {{ .Values.volumes.chaindir.mountPath }}/keystore &&
mkdir -p {{ .Values.volumes.chaindir.mountPath }}/keystore &&
cp {{ .Values.ethereum.account.mountPath }}/{{ .Values.ethereum.account.address }} {{ .Values.volumes.chaindir.mountPath }}/keystore/"
],
"volumeMounts": [
@ -90,7 +90,6 @@ spec:
- "{{ .Values.ethereum.port }}"
- --nat
- any
- --fast
- --nodiscover
- --identity
- "{{ default "$(POD_NAME)" .Values.ethereum.identity }}"
@ -179,6 +178,8 @@ spec:
- "100"
- --verbosity
- "4"
- --syncmode
- "full"
ports:
- containerPort: {{ .Values.ethereum.port }}
name: peer