2012-05-31 2 views
0

Я довольно новичок в Solr, поэтому извиняюсь, если это глупый вопрос :) У меня есть процесс Solr и запись в файл. Уровень журнала установлен в INFO. Независимо от этого, он все еще регистрируется как сумасшедший, хотя на самом деле ничего не ищут. Журналы содержат такие записи, как в основном:Solr чрезмерный забор и автопокрытие - это нормально?

INFO: autowarming result for [email protected] main 
     queryResultCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0} 
May 31, 2012 6:53:45 PM org.apache.solr.search.SolrIndexSearcher warm 
INFO: autowarming [email protected] main from [email protected] main 
     documentCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=6188938,cumulative_hits=2441,cumulative_hitratio=0.00,cumulative_inserts=6186497,cumulative_evictions=4581707} 
May 31, 2012 6:53:45 PM org.apache.solr.search.SolrIndexSearcher warm 
INFO: autowarming result for [email protected] main 
     documentCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=6188938,cumulative_hits=2441,cumulative_hitratio=0.00,cumulative_inserts=6186497,cumulative_evictions=4581707} 
May 31, 2012 6:53:45 PM org.apache.solr.core.QuerySenderListener newSearcher 
INFO: QuerySenderListener sending requests to [email protected] main 
May 31, 2012 6:53:45 PM org.apache.solr.core.QuerySenderListener newSearcher 
INFO: QuerySenderListener done. 
May 31, 2012 6:53:45 PM org.apache.solr.core.SolrCore registerSearcher 
INFO: [] Registered new searcher [email protected] main 
May 31, 2012 6:53:45 PM org.apache.solr.search.SolrIndexSearcher close 
INFO: Closing [email protected] main 
     fieldValueCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0} 
     filterCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0} 
     queryResultCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=0,cumulative_hits=0,cumulative_hitratio=0.00,cumulative_inserts=0,cumulative_evictions=0} 
     documentCache{lookups=0,hits=0,hitratio=0.00,inserts=0,evictions=0,size=0,warmupTime=0,cumulative_lookups=6188938,cumulative_hits=2441,cumulative_hitratio=0.00,cumulative_inserts=6186497,cumulative_evictions=4581707} 
May 31, 2012 6:53:45 PM org.apache.solr.update.processor.LogUpdateProcessor finish 

Это нормально? Это, похоже, наносит довольно здоровую нагрузку на систему (ничего не драматично, но все же).

Я просто пытаюсь понять, что именно он делает и почему.

+0

Да, это нормально. – Ansari

ответ

1

IMHO в производственной среде, пока у вас не возникнет проблема, вы должны использовать уровень WARNING (как это делают серверы приложений).

Вы можете настроить ведение журнала через консоль администратора Solr (для локального URL-адреса Jetty будет: http://localhost:8983/solr/admin/logging), и это можно сделать для каждого пакета/класса отдельно.

уровни лесозаготовок:

  • УТОНЧЕННАЯ
  • FINE
  • CONFIG
  • INFO
  • ПРЕДУПРЕЖДЕНИЕ
  • ТЯЖЕЛАЯ
  • OFF

Если вы оставите его неустановленным, используется INFO.

1

По умолчанию уровень ведения журнала - это информация.
Когда solr загружает ядро, он загружает все файлы конфигурации для ядер и автоматически нагревает кеши, и все это будет выходить из системы в файлах журнала.

Configuring logging может помочь вам настроить регистрацию на нужный уровень.

Вы можете настроить автосогласование для Solr в файле конфигурации solrconfig.xml.

Смежные вопросы