add V4 network config, reduce memory reqs to allow more Codex nodes to be schedule in the same physical machine

This commit is contained in:
gmega 2024-01-22 09:35:47 -03:00
parent 258731c53f
commit 8fead06993
No known key found for this signature in database
GPG Key ID: FFD8DAF00660270F
3 changed files with 19 additions and 8 deletions

View File

@ -26,7 +26,7 @@ namespace CodexPlugin
protected override void Initialize(StartupConfig startupConfig)
{
SetResourcesRequest(milliCPUs: 100, memory: 5.GB());
SetResourcesRequest(milliCPUs: 100, memory: 2.GB());
//SetResourceLimits(milliCPUs: 4000, memory: 12.GB());
SetSchedulingAffinity(notIn: "false");

View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
export DEPLOYMENT_NAME="-chronos-v4"
export DEPLOYMENT_NAMESPACE="-chronos-v4-testnet"
export CODEX_STORAGE_QUOTA=60000
export CODEX_BLOCK_TTL=9999999
export CODEX_BLOCK_MI=9999999
export DEPLOYMENT_NODES=5
export DEPLOYMENT_VALIDATORS=3
. ./deploy-continuous-testnet.sh

View File

@ -1,19 +1,19 @@
dotnet run \
--project "${DEPLOYMENT_CODEXNETDEPLOYER_PATH:-Tools/CodexNetDeployer}" \
--deploy-name="${DEPLOYMENT_NAME:-codex-profiling-two-client-test}" \
--deploy-name="${DEPLOYMENT_NAME:-codex-continuous-test-deployment}" \
--kube-config="${KUBECONFIG:-/opt/kubeconfig.yaml}" \
--kube-namespace="${DEPLOYMENT_NAMESPACE:-codex-profiling-two-client-test}" \
--kube-namespace="${DEPLOYMENT_NAMESPACE:-codex-continuous-tests}" \
--deploy-file="${DEPLOYMENT_FILE:-codex-deployment.json}" \
--nodes=${DEPLOYMENT_NODES:-2} \
--validators=${DEPLOYMENT_VALIDATORS:-1} \
--nodes=${DEPLOYMENT_NODES:-5} \
--validators=${DEPLOYMENT_VALIDATORS:-3} \
--log-level="${CODEX_LOG_LEVEL:-Trace}" \
--storage-quota=${CODEX_STORAGE_QUOTA:-60000} \
--storage-quota=${CODEX_STORAGE_QUOTA:-2048} \
--storage-sell=${CODEX_STORAGE_SELL:-1024} \
--min-price=${CODEX_MIN_PRICE:-1024} \
--max-collateral=${CODEX_MAX_COLLATERAL:-1024} \
--max-duration=${CODEX_MAX_DURATION:-3600000} \
--block-ttl=${CODEX_BLOCK_TTL:-9999999} \
--block-mi=${CODEX_BLOCK_MI:-9999999} \
--block-ttl=${CODEX_BLOCK_TTL:-180} \
--block-mi=${CODEX_BLOCK_MI:-120} \
--block-mn=${CODEX_BLOCK_MN:-10000} \
--metrics-endpoints=${CODEX_METRICS:-1} \
--metrics-scraper=${CODEX_METRICS:-1} \