1 package v1alpha1 2 3 // DiskMonitor Disk Monitor Options 4 // Apache CouchDB can react proactively when disk space gets low. 5 type DiskMonitor struct { 6 // BackgroundViewIndexingThreshold The percentage of used disk space on the `view_index_dir` above which CouchDB 7 // will no longer start background view indexing jobs. Defaults to 80. 8 BackgroundViewIndexingThreshold *int `json:"backgroundViewIndexingThreshold,omitempty" ini:"background_view_indexing_threshold,omitempty"` 9 10 // InteractiveDatabaseWritesThreshold The percentage of used disk space on the database_dir above which CouchDB 11 // will no longer allow interactive document updates (writes or deletes). 12 // Replicated updates and database deletions are still permitted. 13 // In a clustered write an error will be returned if enough nodes are above the `interactive_database_writes_threshold`. 14 // Defaults to 90. 15 InteractiveDatabaseWritesThreshold *int `json:"interactiveDatabaseWritesThreshold,omitempty" ini:"interactive_database_writes_threshold,omitempty"` 16 17 // Enable enable disk monitoring subsystem. Defaults to false. 18 Enable *bool `json:"enable,omitempty" ini:"enable,omitempty"` 19 20 // InteractiveViewIndexingThreshold The percentage of used disk space on the view_index_dir above which CouchDB 21 // will no longer update stale view indexes when queried. 22 // View indexes that are already up to date can still be queried, 23 // and stale view indexes can be queried if either stale=ok or update=false are set. 24 //Attempts to query a stale index without either parameter will yield a 507 Insufficient Storage error. Defaults to 90. 25 InteractiveViewIndexingThreshold *int `json:"interactiveViewIndexingThreshold,omitempty" ini:"interactive_view_indexing_threshold,omitempty"` 26 } 27