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.
 
 
 
 

44 lignes
1.5 KiB

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