Hello all,

This week(end) I was working on getting the cache statistics and live
displays to work. I have accomplished part of the work. Part of it still
remains and I hope to complete it by tomorrow.

*Cache Statistics :*

It has to be determined how much of requests each thread is handling. The
new functions added are :

   1. cache_process_init - to initialize the cache statistics when the
   cache plugin is running and when the user interface is started.
   2. cache_thread_init - to initialize the cache statistics for each
   thread of the server that is running.
   3. cache_update - to update the statistics of the plugin, adding up the
   request per second that are currently running.
   4. cache_stats_new - each time a new request is assigned to a thread,
   the number of requests handled by the specific thread is incremented.

Making use of mime type module of Monkey server, I also wrote code to pass
the mime type of the requested file to the response header (something that
I had not done before). The way to obtain the mimetype of the file
requested, is to find out the extension of the file from the url of the
request. This is then set to the mime type of the request header in the
cache.c file. This is exactly how the server has found the content type of
the requested file. This could be used in the cache plugin too. Using the
mimetype_find () function present in the server’s source code file -
mimetype.c, the mime type is found, by passing the file name.

*User interface development*

I spent most of my time on figuring out how to include graphs in the user
interface and make them display live information. This link :
http://stackoverflow.com/questions/22685743/how-to-populate-real-time-data-into-a-twitter-bootstrap-admin-dashboard-theme
was
useful. I have tried to use Flot charts in the user interface. I had to
include jquery.flot.js and jquery.js files for the dependencies and also
had to write a graphs.js file in which to specify the graph's size and what
value is to be represented, etc.

*Adherence to timeline : *

According to the timeline, I need to finish the user interface and start
testing from the next day. I hope to complete this task by tomorrow and
start testing from the next day or at least by Wednesday.

*Code : *https://github.com/tssavita/cache-plugin-implementation

*Blog post :*
http://savita92.wordpress.com/2014/07/28/gsoc-2014-update-caching-plugin-week-10/

Thanks and regards,

Savita.
_______________________________________________
Monkey mailing list
Monkey@lists.monkey-project.com
http://lists.monkey-project.com/listinfo/monkey

Reply via email to