SHARE
TWEET

memcron 0.6.6-Bret sample config.cfg

bret_miller Nov 18th, 2011 26 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
  13. $key = "XXXXXXXXXXXXXXXX";
  14.  
  15. # Name of your PS server (log into the server and type "hostname" in shell to find out)
  16. $ps = "ps99999";
  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 = 1500;
  23.  
  24. # Minimum amount of memory that memCron can request (DreamHost default is 150)
  25. # ADVANCED - Time dependant minimum
  26. $min_memory = 600;
  27.  
  28. # If this threshold is exceeded, memCron will send out an email to notify you (set to 0 to disable this feature)
  29. $mem_threshold = 1000;
  30.  
  31. # If set to 1, send alert when memory is changed
  32. $alert_on_change = 1;
  33.  
  34. # If set to 1, send alert when API generates an error
  35. $alert_on_error = 1;
  36.  
  37. # Notifications will be send to this email when $mem_threshold is exceeded
  38. $email = 'webmaster@example.com';
  39.  
  40. # 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)
  41. $mem_free_confidence = 0.750;
  42.  
  43. # 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)
  44. $mem_free_to_used_ratio = 1.333;
  45.  
  46. # 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)
  47. $downsize_resistance = 30;
  48.  
  49. # Number of samples to be used to find memory usage, default=60
  50. $num_samples = 30;
  51.  
  52. # Number of past data to be used to estimate free memory required
  53. $num_data = 30;
  54.  
  55. # Number of data to be stored in the csv file used to generate pretty graphs
  56. $num_data_csv = 8000;
  57.  
  58.  
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