[chef] Re: Re: Re: Chef-expander not working / search problem


Chronological Thread 
  • From: Nanuk Krinner < >
  • To:
  • Subject: [chef] Re: Re: Re: Chef-expander not working / search problem
  • Date: Wed, 12 Sep 2012 16:33:44 +0200

Hi,

On 09/12/2012 03:11 AM, Daniel DeLeo wrote:
[...]
Is there a firewall dropping packets to rabbitmq?

Rabbitmq, Couchdb, chef-expander and chef-solr are all running on the same machine and communication between the components seems to work.

I tested to talk to rabbitmq-server and chef-solr with curl and got replies. I also listened to the solr port with nc and started a 'knife index rebuild' command and could see incoming traffic. This would have come through chef-expander.

The problem remains that 'knife search' does not work properly. To clarify my problems:

I have two nodes. with 'knife search node *:*' I sometimes get one result - the node where all the components are installed. The other one never appeared.

I have number of roles set up. With 'knife search role *:*' I always get only one single role as a result. The role I created first as a test role. base_example or other roles that were created never show up in the results.

Of course I can see roles and nodes and everything via the 'knife <xy> list' queries.

So at least at some point the process did work somehow. Also what I find strange is that all 'chef-expanderctl <something>' queries except 'chef-expanderctl node-status' do fail, while the later one just shows no data.

The logs show no errors, so I am kinda clueless now where to search for the source of my problem. I will post the solrconfig.xml below, but everything looks ok for me there.

Any ideas what my problem could be?

Regards,
Nanuk

solarconfig.xml:
===========================================
<?xml version="1.0" encoding="UTF-8" ?>

<config>


<abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>

  <dataDir>${solr.data.dir:./solr/data}</dataDir>


  <indexDefaults>

    <useCompoundFile>false</useCompoundFile>

    <mergeFactor>10</mergeFactor>

    <ramBufferSizeMB>32</ramBufferSizeMB>
    <maxMergeDocs>2147483647</maxMergeDocs>
    <maxFieldLength>2000000</maxFieldLength>
    <writeLockTimeout>1000</writeLockTimeout>
    <commitLockTimeout>10000</commitLockTimeout>


    <lockType>single</lockType>
  </indexDefaults>

  <mainIndex>
    <useCompoundFile>false</useCompoundFile>
    <ramBufferSizeMB>32</ramBufferSizeMB>
    <mergeFactor>25</mergeFactor>
    <maxMergeDocs>2147483647</maxMergeDocs>
    <maxFieldLength>2000000</maxFieldLength>
    <unlockOnStartup>false</unlockOnStartup>
    <reopenReaders>true</reopenReaders>
    <deletionPolicy class="solr.SolrDeletionPolicy">
      <str name="keepOptimizedOnly">false</str>
      <str name="maxCommitsToKeep">1</str>
    </deletionPolicy>

  </mainIndex>

  <jmx />

  <updateHandler class="solr.DirectUpdateHandler2">

    <autoCommit>
      <maxDocs>100</maxDocs>
      <maxTime>10000</maxTime>
    </autoCommit>

  </updateHandler>

  <query>

    <maxBooleanClauses>1024</maxBooleanClauses>

    <filterCache
      class="solr.FastLRUCache"
      size="512"
      initialSize="512"
      autowarmCount="128"/>

    <queryResultCache
      class="solr.LRUCache"
      size="512"
      initialSize="512"
      autowarmCount="32"/>

    <documentCache
      class="solr.LRUCache"
      size="512"
      initialSize="512"
      autowarmCount="0"/>

    <enableLazyFieldLoading>true</enableLazyFieldLoading>

    <queryResultWindowSize>50</queryResultWindowSize>

    <queryResultMaxDocsCached>200</queryResultMaxDocsCached>

    <useColdSearcher>false</useColdSearcher>

    <maxWarmingSearchers>20</maxWarmingSearchers>

  </query>

  <requestDispatcher handleSelect="true" >
<requestParsers enableRemoteStreaming="true" multipartUploadLimitInKB="2048000" />

    <httpCaching lastModifiedFrom="openTime"
                 etagSeed="Solr">

    </httpCaching>
  </requestDispatcher>

<requestHandler name="standard" class="solr.SearchHandler" default="true">

     <lst name="defaults">
       <str name="echoParams">explicit</str>

     </lst>
  </requestHandler>

  <requestHandler name="/update" class="solr.XmlUpdateRequestHandler" />


<requestHandler name="/update/javabin" class="solr.BinaryUpdateRequestHandler" />

<requestHandler name="/analysis/document" class="solr.DocumentAnalysisRequestHandler" />

<requestHandler name="/analysis/field" class="solr.FieldAnalysisRequestHandler" />

<requestHandler name="/update/csv" class="solr.CSVRequestHandler" startup="lazy" />


<requestHandler name="/admin/" class="org.apache.solr.handler.admin.AdminHandlers" />

  <requestHandler name="/admin/ping" class="PingRequestHandler">
    <lst name="defaults">
      <str name="qt">standard</str>
      <str name="q">solrpingquery</str>
      <str name="echoParams">all</str>
    </lst>
  </requestHandler>

  <requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
    <lst name="defaults">
     <str name="echoParams">explicit</str>
     <str name="echoHandler">true</str>
    </lst>
  </requestHandler>

  <admin>
    <defaultQuery>solr</defaultQuery>

  </admin>

</config>




Archive powered by MHonArc 2.6.16.

§