Server: periodic op push less often

This commit is contained in:
2024-10-13 09:39:37 +02:00
parent c3433e1436
commit 2060ae8151
3 changed files with 3 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ public class OpObjectRegistry {
}
@Scheduled(every = "10s", concurrentExecution = Scheduled.ConcurrentExecution.SKIP)
@Scheduled(every = "${dhfs.objects.periodic-push-op-interval}", concurrentExecution = Scheduled.ConcurrentExecution.SKIP)
@Blocking
void periodicPush() {
for (var obj : _objects.values()) {

View File

@@ -9,6 +9,7 @@ dhfs.objects.invalidation.threads=4
dhfs.objects.invalidation.delay=1000
dhfs.objects.reconnect_interval=5s
dhfs.objects.write_log=false
dhfs.objects.periodic-push-op-interval=5m
dhfs.fuse.root=${HOME}/dhfs_default/fuse
dhfs.fuse.debug=false
dhfs.fuse.enabled=true

View File

@@ -80,6 +80,7 @@ public class DhfsImage implements Future<String> {
"-Dcom.usatiuk.dhfs.supportlib.native-path=/libs",
"-Dquarkus.log.category.\"com.usatiuk\".level=TRACE",
"-Dquarkus.log.category.\"com.usatiuk.dhfs\".level=TRACE",
"-Ddhfs.objects.periodic-push-op-interval=5s",
"-jar", "/app/quarkus-run.jar")
.build())
.withFileFromPath("/app", Paths.get(buildPath, "quarkus-app"))