Conservative SmartOS global-zone memory pressure guard with dry-run-first policy and SMF integration.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

46 lignes
1.6 KiB

  1. # o6h-memory-guard 1.0.8 -- 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. MIN_RSS_KIB 65536
  22. LOG_MAX_MIB 10
  23. LOG_KEEP 5
  24. # Explicit additional protected processes: exact pr_fname (max 15 characters).
  25. # The global zone, zone init, essential names, missing/unknown UUIDs and all
  26. # zones without an allow rule are ALWAYS excluded. See README.
  27. protect_process sshd
  28. protect_process postgres
  29. protect_process mysqld
  30. protect_process mariadbd
  31. protect_process redis-server
  32. protect_process zabbix_agentd
  33. # protect_pid 12345
  34. # Inventory supplied by the operator, from vmadm list (outside the daemon).
  35. # Add REAL UUIDs and aliases. No active allow rules are shipped.
  36. # Grammar: zone <lowercase-UUID> <safe-alias-without-spaces> <allow|protect|observe>
  37. # allow: eligible in simulations and for signals only with ACTION_MODE armed.
  38. # protect / observe / absent: never eligible for signals, including floor.
  39. # Examples (replace the entire UUID; these are comments, not authorizations):
  40. # zone YOUR-REAL-WEB-ZONE-UUID web5 allow
  41. # zone YOUR-REAL-DB-ZONE-UUID database protect
  42. # zone YOUR-REAL-MONITOR-ZONE-UUID monitoring protect