Conservative SmartOS global-zone memory pressure guard with dry-run-first policy and SMF integration.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

48 行
1.7 KiB

  1. # o6h-memory-guard 1.0.10 -- whitespace-separated, no shell evaluation.
  2. # Restart required for configuration changes. Duplicate scalar keys are errors.
  3. ACTION_MODE dry-run
  4. SYSLOG_ENABLED yes
  5. SYSLOG_FACILITY local5
  6. PRE_SECONDS 1
  7. PRESSURE_SECONDS 2
  8. CRITICAL_SECONDS 2
  9. RECOVERY_SECONDS 15
  10. CRITICAL_TERM_GRACE_SECONDS 5
  11. EMERGENCY_TERM_GRACE_SECONDS 1
  12. FLOOR_KILL_DELAY_SECONDS 0
  13. MAX_CACHED_CANDIDATE_AGE_SECONDS 15
  14. NORMAL_SCAN_SECONDS 5
  15. SCAN_BUDGET_MS 200
  16. COOLDOWN_SECONDS 10
  17. MAX_VICTIMS_EPISODE 4
  18. MAX_VICTIMS_MINUTE 4
  19. MAX_EMERGENCY_VICTIMS_EPISODE 8
  20. MAX_FLOOR_VICTIMS_EPISODE 12
  21. # Absolute ceiling; only persistent corroborated FLOOR may exceed the normal 12.
  22. MAX_HARD_FLOOR_VICTIMS_EPISODE 16
  23. MIN_RSS_KIB 65536
  24. LOG_MAX_MIB 10
  25. LOG_KEEP 5
  26. # Explicit additional protected processes: exact pr_fname (max 15 characters).
  27. # The global zone, zone init, essential names, missing/unknown UUIDs and all
  28. # zones without an allow rule are ALWAYS excluded. See README.
  29. protect_process sshd
  30. protect_process postgres
  31. protect_process mysqld
  32. protect_process mariadbd
  33. protect_process redis-server
  34. protect_process zabbix_agentd
  35. # protect_pid 12345
  36. # Inventory supplied by the operator, from vmadm list (outside the daemon).
  37. # Add REAL UUIDs and aliases. No active allow rules are shipped.
  38. # Grammar: zone <lowercase-UUID> <safe-alias-without-spaces> <allow|protect|observe>
  39. # allow: eligible in simulations and for signals only with ACTION_MODE armed.
  40. # protect / observe / absent: never eligible for signals, including floor.
  41. # Examples (replace the entire UUID; these are comments, not authorizations):
  42. # zone YOUR-REAL-WEB-ZONE-UUID web5 allow
  43. # zone YOUR-REAL-DB-ZONE-UUID database protect
  44. # zone YOUR-REAL-MONITOR-ZONE-UUID monitoring protect