Skip to content

Commit

Permalink
chore: adding config and delay
Browse files Browse the repository at this point in the history
  • Loading branch information
Amninder Kaur committed Aug 14, 2023
1 parent 4f20f47 commit 7939b2e
Show file tree
Hide file tree
Showing 15 changed files with 435 additions and 372 deletions.
11 changes: 9 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# WHEN DEVELOPING LOCALLY, WE NEED TO ACCESS THE HOST NETWORK FROM K8S (FOR POSTGRES/KAFKA/ELASTIC/ETC)
# LOCAL_HOST_IP=$(ifconfig en0 | grep inet | grep -v inet6 | awk '{print $2}')
#LOCAL_HOST_IP=$(ifconfig en0 | grep inet | grep -v inet6 | awk '{print $2}')

# RUST version
RUST_VERSION=stable
Expand All @@ -22,10 +22,17 @@ PG_PORT=5432
PG_USER=postgres
PG_PASSWORD=admin
PG_DATABASE=chronos
PG_POOL_SIZE=50
PG_POOL_SIZE=25
ADMIN_PG_USER=postgres
ADMIN_PG_PASSWORD=admin
ADMIN_PG_DATABASE=postgres

# CONFIG
RUST_LOG=info


DELAY_TIME=0
RANDOMNESS_DELAY=100
DB_POLL_INTERVAL=5
TIMING_ADVANCE=0
FAIL_DETECT_INTERVAL=10
9 changes: 8 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,18 @@ PG_HOST=$LOCAL_HOST_IP
PG_PORT=5432
PG_USER=admin
PG_PASSWORD=admin
PG_DATABASE=talos_certifier
PG_DATABASE=chronos_db
PG_POOL_SIZE=50
ADMIN_PG_USER=admin
ADMIN_PG_PASSWORD=admin
ADMIN_PG_DATABASE=postgres

# CONFIG
RUST_LOG=debug

#APP
DELAY_TIME=0
RANDOMNESS_DELAY=100
DB_POLL_INTERVAL=5
TIMING_ADVANCE=0
FAIL_DETECT_INTERVAL=500
89 changes: 70 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ hdrhistogram = "7.5.2"
deadpool-postgres = "0.10"
refinery = { version = "0.8.7", features = ["tokio-postgres"] }
thiserror = "1.0.31"
rand = "0.8.5"
serial_test = "2.0.0"
[dev-dependencies]
criterion = "0.4.0"

Expand Down
30 changes: 0 additions & 30 deletions env.example

This file was deleted.

Loading

0 comments on commit 7939b2e

Please sign in to comment.