diff options
-rw-r--r-- | simulation/config/config.go | 4 | ||||
-rw-r--r-- | simulation/kubernetes/config.toml.in | 2 | ||||
-rw-r--r-- | simulation/kubernetes/peer-server.yaml | 8 | ||||
-rw-r--r-- | simulation/kubernetes/validator.yaml.in | 8 | ||||
-rw-r--r-- | test_config/test.toml | 2 |
5 files changed, 12 insertions, 12 deletions
diff --git a/simulation/config/config.go b/simulation/config/config.go index 02c077b..cb67411 100644 --- a/simulation/config/config.go +++ b/simulation/config/config.go @@ -78,8 +78,8 @@ func GenerateDefault(path string) error { Title: "DEXON Consensus Simulation Config", Validator: Validator{ Consensus: Consensus{ - PhiRatio: 0.66667, - K: 2, + PhiRatio: float32(2) / 3, + K: 1, }, Num: 7, ProposeIntervalMean: 500, diff --git a/simulation/kubernetes/config.toml.in b/simulation/kubernetes/config.toml.in index 9791ba6..68008a2 100644 --- a/simulation/kubernetes/config.toml.in +++ b/simulation/kubernetes/config.toml.in @@ -8,7 +8,7 @@ max_block = 100 [validator.consensus] phi_ratio = 6.66670024394989e-01 -k = 2 +k = 1 [networking] type = "tcp" diff --git a/simulation/kubernetes/peer-server.yaml b/simulation/kubernetes/peer-server.yaml index 360736b..3a07590 100644 --- a/simulation/kubernetes/peer-server.yaml +++ b/simulation/kubernetes/peer-server.yaml @@ -41,11 +41,11 @@ spec: - containerPort: 8080 resources: requests: - cpu: 100m - memory: 256Mi + cpu: 2 + memory: 2Gi limits: - cpu: 200m - memory: 512Mi + cpu: 2 + memory: 2Gi env: - name: ROLE value: "peer-server" diff --git a/simulation/kubernetes/validator.yaml.in b/simulation/kubernetes/validator.yaml.in index 8c0dd1d..25b005f 100644 --- a/simulation/kubernetes/validator.yaml.in +++ b/simulation/kubernetes/validator.yaml.in @@ -28,11 +28,11 @@ spec: - containerPort: 8080 resources: requests: - cpu: 100m - memory: 256Mi + cpu: 2 + memory: 2Gi limits: - cpu: 200m - memory: 512Mi + cpu: 2 + memory: 2Gi env: - name: ROLE value: "validator" diff --git a/test_config/test.toml b/test_config/test.toml index 0204ea1..d7ba479 100644 --- a/test_config/test.toml +++ b/test_config/test.toml @@ -8,7 +8,7 @@ max_block = 20 [validator.consensus] phi_ratio = 6.66670024394989e-01 -k = 2 +k = 1 [networking] type = "tcp-local" |