Changes between Version 5 and Version 6 of Implementation

Show
Ignore:
Timestamp:
07/22/2009 10:34:34 AM (9 years ago)
Author:
paco
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Implementation

    v5 v6  
    6868Due to the great number of index files and the time it takes to read and evaluate them its is neccessary to preload the index files into memory for fast access. In a first solution the index files were read every time a search was performed, incurring a 45 second time penalty. Not fun! 
    6969 
    70 We use memcached for this. Since the EMEA index files are about 250 MB you need to increase the maximum memory size for memcached from the default 64 MB to say 512 MB or whatever is appropriate. 
    71  
    72 To use memcache you need to install: 
     70We use memcached to remedy this. To use memcache you need to install: 
    7371 
    7472{{{ 
     
    8280/etc/memcache.conf 
    8381}}} 
     82 
     83Since the EMEA index files are about 250 MB you need to increase the maximum memory size for memcached from the default 64 MB to say 512 MB or whatever is appropriate. Edit the following configuration parameter (note that lines beginning with # are comments!): 
     84 
     85{{{ 
     86# Start with a cap of 64 megs of memory. It's reasonable, and the daemon default 
     87# Note that the daemon will grow to this size, but does not start out holding this much 
     88# memory 
     89#-m 64 
     90-m 512 
     91}}} 
     92 
     93Then restart the 'memcached' server daemon with: 
     94 
     95{{{ 
     96/etc/init.d/memcached restart 
     97}}} 
     98 
    8499 
    85100To use the Python memcache module write: