It’s always important to keep your server logs around for as long as it makes business sense. You’ll need them for auditing system access, discovering abuses, or to identify root causes to problems, among other reasons. The challenge, though, is that depending on the service being provided and the amount of traffic received, your logs are capable of growing to gargantuan sizes, consuming every last bit of disk space available.
Logrotate allows us to better manage our logs to prevent from consuming too much disk space. Depending on the schedule you decide on, your logs can be rotated every day, week, or month. Each rotation renames your existing log file, usually by appending a ‘.’ and number to the end, and then creates a new file. To preserve storage the logs that have been rotated can be compressed using Gzip.
SQL databases are very good at storing and retrieving data, and they can do so quickly. However, no matter how well you tune your database servers there will come a time during periods of high traffic that your database server becomes a large bottleneck. By utilizing technologies like Memcache, we can keep results of frequently used database queries in a cache stored in RAM. Using the cached results significantly decreases that amount of time and effort to retrieve data and present in our application.
Memcache is what’s known as an in-memory key-value store. The key is a unique identifier that is used to quickly search for cached strings or objects. The value is the data that has been cached. For the purpose of storing database query results, the key will typically be the query used on your database.
Overview Apache allows you to block certain files or directories under your document root from being accessed over the web. This is very beneficial if, for example, you have an application version controlled by Git. Odds are you do not want any of the files under .git to be accessed, for various security reasons. Ideally, […]
Give your developers the ability to make their applications more portable. Learn how to deploy Docker onto a CentOS or Red Hat server.
Overview Linux can be used as a very capable load balancer for small-to-medium sized organization, or for projects that do not require enterprise level load balancing features – think granular roles and user delegation, and built-in content caching. The following is a list of popular load balancer solutions that can be used on most Linux […]
Microsoft CIFS or SMB, whichever name you prefer to call the protocol, mounting these shares onto a CentOS 7 server or desktop is possible. Not just limited to shares hosted from Microsoft Windows, we can also mount shares from any network device that uses the SMB protocol. This includes just about any NAS device on the market.
Learn how to create a Direct Routing active/passive keepalived loud balancer cluster. Direct Routing load balancing is ideal when hosting large files or multimedia.
Learn how to deploy a Puppet Master server on CentOS 6.X using the free open-source release, and automate system configuration management in your infrastructure.
Overview It happens to the best of us. The root password for a particular server isn’t known, there are no other admin accounts available, and you need immediate access to the server. It may have been the result of a previous employee not documenting it or maybe it was lost. Either way, it needs to […]