SHARE
TWEET

memcron 0.6.4-Bret sample config

bret_miller Aug 16th, 2011 164 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #////////////////////////////////////
  2. #
  3. #  memCron Settings
  4. #
  5. #  URL: http://memcron.com/usage/
  6. #
  7. #////////////////////////////////////
  8.  
  9. # Disable memory updates?
  10. $disable_updates = 0;
  11.  
  12. # API key (required)
  13. $key = "XXXXXXXXXXX";
  14.  
  15. # Name of your PS server (log into the server and type "hostname" in shell to find out)
  16. $ps = "ps20828";
  17.  
  18. # Number of minutes between calls to memCron (i.e. interval for cron jobs), 5 min recommended, cannot be less than 1 min
  19. $cron_interval = 1;
  20.  
  21. # Maximum amount of memory that memCron can request (DreamHost default is 4000)
  22. $max_memory = 750;
  23.  
  24. # Minimum amount of memory that memCron can request (DreamHost default is 150)
  25. # ADVANCED - Time dependant minimum
  26. $min_memory = 400;
  27. {
  28.         my ($sec,$min,$hour) = localtime();
  29.         if ($hour>=20 && $hour<04) {
  30.                 $min_memory = 300;
  31.         }
  32. }
  33.  
  34.  
  35. # If this threshold is exceeded, memCron will send out an email to notify you (set to 0 to disable this feature)
  36. $mem_threshold = 600;
  37.  
  38. # If set to 1, send alert when memory is changed
  39. $alert_on_change = 1;
  40.  
  41. # If set to 1, send alert when API generates an error
  42. $alert_on_error = 1;
  43.  
  44. # Notifications will be send to this email when $mem_threshold is exceeded
  45. $email = 'webmaster@example.com';
  46.  
  47. # Confidence level for free memory to be enough until next function call (must be between 0 and 1, the closer to 1 the more confident you are, but it also increases the amount of free memory to be reserved, take note that this value will not be used if $mem_free_to_used_ratio demands a higher memory reserve)
  48. $mem_free_confidence = 0.70;
  49.  
  50. # Minimum free vs. used memory ratio you are comfortable with (i.e. free memory / used memory, the higher this value the less likely swap memory will be utilized, and more reliable your site will be -> less internal server error)
  51. $mem_free_to_used_ratio = 0.60;
  52.  
  53. # Number of consecutive request to lower memory limit before memCron actually does it (cannot be less than 1; increase this value if memCron keeps running out of daily resize limit, higher value reduces the responsiveness of memory downsize)
  54. $downsize_resistance = 30;
  55.  
  56. # Force downsize perhaps requiring reboot if saved memory more than this ratio
  57. $force_downsize_ratio = 0.20;
  58.  
  59. # Number of samples to be used to find memory usage, default=60
  60. $num_samples = 30;
  61.  
  62. # Number of past data to be used to estimate free memory required
  63. $num_data = 120;
  64.  
  65. # Number of data to be stored in the csv file used to generate pretty graphs
  66. $num_data_csv = 8000;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top