File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 4141| ` TRUSTD_DB_PASSWORD ` | Database password | ` trustify ` |
4242| ` TRUSTD_DB_PORT ` | Database port | ` 5432 ` |
4343| ` TRUSTD_DB_USER ` | Database username | ` postgres ` |
44- | ` TRUSTD_GC_FREQ ` | How often database garbage collection runs (humantime) | ` 1h ` |
44+ | ` TRUSTD_GC_FREQ ` | Database garbage collection frequency [ disabled by default ] (humantime) | ` 0s ` |
4545| ` TRUSTD_ISSUER_URL ` | Issuer URL for ` --devmode ` | ` http://localhost:8090/realms/trustify ` |
4646| ` TRUSTD_MAX_CACHE_SIZE ` | Maximum size of the graph cache. | ` 200 MiB ` |
4747| ` TRUSTD_S3_ACCESS_KEY ` | S3 access key | |
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ use trustify_module_storage::{
3838use trustify_module_ui:: { UI , endpoints:: UiResources } ;
3939use utoipa:: openapi:: { Info , License } ;
4040
41- const GC_FREQ : Duration = Duration :: from_secs ( 60 * 60 ) ;
41+ const GC_FREQ : Duration = Duration :: from_secs ( 0 ) ;
4242const ENV_GC_FREQ : & str = "TRUSTD_GC_FREQ" ;
4343
4444/// Run the API server
@@ -379,7 +379,7 @@ fn schedule_db_tasks(db: db::Database) {
379379 _ => GC_FREQ ,
380380 } ;
381381 if freq < Duration :: from_secs ( 1 ) {
382- log:: warn!( "GC is disabled; to enable, set {ENV_GC_FREQ} to at least 1s" ) ;
382+ log:: warn!( "Garbage collection is disabled; to enable, set {ENV_GC_FREQ} to at least 1s" ) ;
383383 return ;
384384 }
385385 log:: info!( "GC frequency set to {}" , humantime:: Duration :: from( freq) ) ;
You can’t perform that action at this time.
0 commit comments