mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-01-13 08:35:59 +00:00
Compare commits
3 Commits
90724bf957
...
f4abbe2499
Author | SHA1 | Date | |
---|---|---|---|
|
f4abbe2499 | ||
|
3fd800275a | ||
|
b352184dc6 |
6
DockerfileStandard
Normal file
6
DockerfileStandard
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
FROM rust
|
||||||
|
VOLUME ["/data"]
|
||||||
|
COPY . .
|
||||||
|
RUN apt-get update && apt-get install -y clang cmake build-essential pkg-config libssl-dev
|
||||||
|
RUN cargo build --release
|
||||||
|
CMD ["./target/release/zgs_node", "--config", "run/config-testnet-standard.toml", "--log", "run/log_config"]
|
6
DockerfileTurbo
Normal file
6
DockerfileTurbo
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
FROM rust
|
||||||
|
VOLUME ["/data"]
|
||||||
|
COPY . .
|
||||||
|
RUN apt-get update && apt-get install -y clang cmake build-essential pkg-config libssl-dev
|
||||||
|
RUN cargo build --release
|
||||||
|
CMD ["./target/release/zgs_node", "--config", "run/config-testnet-turbo.toml", "--log", "run/log_config"]
|
@ -157,8 +157,8 @@ impl Default for Config {
|
|||||||
let filter_rate_limiter = Some(
|
let filter_rate_limiter = Some(
|
||||||
discv5::RateLimiterBuilder::new()
|
discv5::RateLimiterBuilder::new()
|
||||||
.total_n_every(300, Duration::from_secs(1)) // Allow bursts, average 300 per second
|
.total_n_every(300, Duration::from_secs(1)) // Allow bursts, average 300 per second
|
||||||
.ip_n_every(300, Duration::from_secs(1)) // Allow bursts, average 300 per second
|
.ip_n_every(9, Duration::from_secs(1)) // Allow bursts, average 9 per second
|
||||||
.node_n_every(300, Duration::from_secs(1)) // Allow bursts, average 300 per second
|
.node_n_every(8, Duration::from_secs(1)) // Allow bursts, average 8 per second
|
||||||
.build()
|
.build()
|
||||||
.expect("The total rate limit has been specified"),
|
.expect("The total rate limit has been specified"),
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user