<commit_before>[server:main]
proc_name = search_server
pidfile = ${parts.buildout.directory}/var/run/search_server.pid
use = egg:gunicorn#main
host = ${options['host']}
port = ${options['port']}
workers = ${options['workers']}
worker_class = gevent
max_requests = 10000
timeout = 30


[app:main]
use = egg:openprocurement.search#search_server
timezone = ${options['timezone']}
secret_key = 123456


[search_engine]
;slave_mode = http://127.0.0.1:8484/heartbeat?key=123456
;slave_wakeup = 600

elastic_host = 127.0.0.1:9200
index_names  = ${parts.buildout.directory}/var/index_names

;; reindex settings
;; =======================
;; xxx_reidex = period_in_days,day_of_week
;; xxx_check = min_docs_count,delta_in_days
;; ========================================
;tender_reindex = 5,6
;tender_check = 300000,2
;plan_reindex = 12,7
;plan_check = 500000,2
;ocds_reindex = 360,7
;ocds_check = 100000,0

;; orgs edrpou database
;; ====================
;; check that edrpou.db has readonly file rights (444) -r--r--r--
;orgs_db = ${parts.buildout.directory}/edrpou/edrpou.db
;orgs_queue = 1000

;; ocds source
;; ===========
ocds_dir = ${parts.buildout.directory}/var/ocds
;ocds_mask = ocds-tender-*.json
;ocds_skip_until = 2016-01-01

;; tender source
;; =============
tender_api_key = ""
tender_api_url = https://lb.api-sandbox.openprocurement.org
tender_api_version = 0
;tender_api_mode = _all_
;tender_skip_until = 2016-01-01
;tender_fast_client = 1
;tender_preload = 10000
;tender_limit = 1000

;; plan source
;; ===========
plan_api_key = ""
plan_api_url = https://lb.api-sandbox.openprocurement.org
plan_api_version = 0<commit_msg>add x_resethour to search.ini<commit_after>[server:main]
proc_name = search_server
pidfile = ${parts.buildout.directory}/var/run/search_server.pid
use = egg:gunicorn#main
host = ${options['host']}
port = ${options['port']}
workers = ${options['workers']}
worker_class = gevent
max_requests = 10000
timeout = 30


[app:main]
use = egg:openprocurement.search#search_server
timezone = ${options['timezone']}
secret_key = 123456


[search_engine]
;slave_mode = http://127.0.0.1:8484/heartbeat?key=123456
;slave_wakeup = 600

elastic_host = 127.0.0.1:9200
index_names  = ${parts.buildout.directory}/var/index_names

;; reindex settings
;; =======================
;; xxx_reidex = period_in_days,day_of_week
;; xxx_check = min_docs_count,delta_in_days
;; ========================================
;tender_reindex = 5,6
;tender_check = 300000,2
;tender_resethour = 22
;plan_reindex = 12,7
;plan_check = 500000,2
;plan_resethour = 23
;ocds_reindex = 360,7
;ocds_check = 100000,0

;; orgs edrpou database
;; ====================
;; check that edrpou.db has readonly file rights (444) -r--r--r--
;orgs_db = ${parts.buildout.directory}/edrpou/edrpou.db
;orgs_queue = 1000

;; ocds source
;; ===========
ocds_dir = ${parts.buildout.directory}/var/ocds
;ocds_mask = ocds-tender-*.json
;ocds_skip_until = 2016-01-01

;; tender source
;; =============
tender_api_key = ""
tender_api_url = https://lb.api-sandbox.openprocurement.org
tender_api_version = 0
;tender_api_mode = _all_
;tender_skip_until = 2016-01-01
;tender_fast_client = 1
;tender_preload = 10000
;tender_limit = 1000

;; plan source
;; ===========
plan_api_key = ""
plan_api_url = https://lb.api-sandbox.openprocurement.org
plan_api_version = 0
{'fraction_non_alphanumeric': 0.20379289584587598, 'fraction_numerical': 0.06562311860325105, 'mean_word_length': 6.085287846481877, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4585772', 'n_tokens_mistral': 1427, 'n_tokens_neox': 1230, 'n_words': 208}