Monitoring Memcached

In order to monitor Memcached, we will use a third-party package called django-memcache-status. This app displays statistics for your Memcached instances in the administration site. Install it with the following command:

pip install django-memcache-status==1.3

Edit the settings.py file and add 'memcache_status' to the INSTALLED_APPS setting:

INSTALLED_APPS = [
# ...
'memcache_status',
]

Make sure Memcached is running, start the development server in another shell window, and open http://127.0.0.1:8000/admin/ in your browser. Log in to the administration site using a superuser. You should see the following block:

This graph shows the cache usage. The green color represents free cache while red indicates used space. If you click the title of the box, it shows detailed statistics of your Memcached instance.

We have set up Memcached for our project and are able to monitor it. Let's start caching data!

..................Content has been hidden....................

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