File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
dragonfly-client-storage/src Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ RUN go install github.com/google/pprof@latest
54
54
55
55
FROM debian:bookworm-slim
56
56
57
- RUN apt-get update && apt-get install -y --no-install-recommends wget curl \
57
+ RUN apt-get update && apt-get install -y --no-install-recommends iperf3 wget curl \
58
58
bash-completion procps apache2-utils ca-certificates binutils bpfcc-tools \
59
59
dnsutils iputils-ping vim linux-perf llvm graphviz \
60
60
&& rm -rf /var/lib/apt/lists/*
Original file line number Diff line number Diff line change @@ -185,10 +185,7 @@ impl PersistentCacheTask {
185
185
186
186
/// is_expired returns whether the persistent cache task is expired.
187
187
pub fn is_expired ( & self ) -> bool {
188
- // When scheduler runs garbage collection, it will trigger dfdaemon to evict the persistent cache task.
189
- // But sometimes the dfdaemon may not evict the persistent cache task in time, so we select the ttl * 1.2
190
- // as the expired time to force evict the persistent cache task.
191
- self . created_at + self . ttl * 2 < Utc :: now ( ) . naive_utc ( )
188
+ self . created_at + self . ttl < Utc :: now ( ) . naive_utc ( )
192
189
}
193
190
194
191
/// is_failed returns whether the persistent cache task downloads failed.
You can’t perform that action at this time.
0 commit comments