Improving Memory Management

We previously talked about log management. Logs are known to be one of the main memory consumers, and if proper care is not enforced, they will take up the memory needed to store logs. A lack of memory to operate causes lag in response and eventually downtime.

To handle this better, on Unix servers, you can enable log rotation. This is a process that manages log files either by compression or deletion in a defined period.

However, even with log rotation, memory is still consumed. An option would be to set up backup databases or datastores, depending on the size of the data that the host consumes. Some of the services available for this are the following:

  • Amazon S3
  • Cassandra
  • Postgres/MongoDB (self-hosted)
  • Google's Cloud storage
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.15.94