powered by CADENAS

Manual

Manual

1.7.5.8.2. Caching index files of $CADENAS_DATA onPARTapplicationServer

In the configuration file under $CADENAS_SETUP/filesystems.cfg it is controlled, whether a caching of CADENAS_DATA index files shall be processed:

  • Variant A: If PARTapplicationServer and $CADENAS_DATA are on the same server, caching is not necessary.

  • Variant B: If PARTapplicationServer and $CADENAS_DATA are not on the same server, caching is required.

    Activate caching of index files, because otherwise the PARTapplicationServer does not work efficiently. Now the cadenas_data/index directory will be replicated. Local hard disk storage has to be available.

[CACHEFS(pssearchserver)]
#enable this stuff.
USECACHEFS=1
#root dir (source) where the caching starts
CACHEROOT=$CADENAS_DATA/index
# sync target dir...
SYNCDIR=$CADENAS_USER/cachefs
#which regex under CACHEROOT not to cache (ignore completely)
NOCACHE=.*index.cfg|.*index.idx
#which regex under CACHEROOT to sync to $CADENAS_USER/cachefs and watch for changes...
SYNCLOCAL=.*lucene.*|.*dym.*|.*sws.*|.*geoindex.*|.*index.ic2t|
 .*index0.ic2t|.*index0.c2t|.*index.0.node.*|.*index.0.data.*
SYNCCHECKSECONDS=180
MAXSYNCTHREADS=100

[CACHEFS(pappserver)]
#enable this stuff.
USECACHEFS=0
#root dir (source) where the caching starts
CACHEROOT=$CADENAS_DATA/index
# sync target dir...
SYNCDIR=$CADENAS_USER/cachefs
#which regex under CACHEROOT not to cache (ignore completely)
NOCACHE=.*index.cfg|.*index.idx
#which regex under CACHEROOT to sync to $CADENAS_USER/cachefs and watch for changes...
SYNCLOCAL=.*lucene.*|.*dym.*|.*sws.*|.*geoindex.*|.*geoindexv2.*|.*topoindex.*|.*index.ic2t|
 .*index0.ic2t|.*index0.c2t|.*index.0.node.*|.*index.0.data.*|.*techterms.xml|.*wordfreq.xml|
 .*index.idx|.*erp.dat
SYNCCHECKSECONDS=900
MAXSYNCTHREADS=10

Setting options:

  • Activation

    USECACHEFS=1 (default = 0 = off)

    Define 1, if in PARTadmin Catalog browsing, search and database with AppServer either the option Catalog browsing and search with AppServer or the option Search with AppServer is selected.

  • Declaration of the caching directory

    SYNCDIR=$CADENAS_USER/cache_index

    => Thus the cache index is stored under "C:\windows\system32\config\systemprofile\cache_index". If this is not wanted, then any other path can be adjusted.

  • Interval, wherein it is checked for changes.

    Adjust SYNCCHECKSECONDS if needed