How to stop and start an individual GPText Solr instance
search cancel

How to stop and start an individual GPText Solr instance

book

Article ID: 295953

calendar_today

Updated On:

Products

VMware Tanzu Greenplum

Environment


Cause

Sometimes it is necessary to restart a single instance of GPText Solr for debugging purpose.

For example, if only specific node reports Out Of Memory (OOM), you may first try to increase Java Heap space for the instance only but not for all nodes.

Also, if you have a node down and want to start the gptext using gptext-start, it will not start due to the node down, so you have to start each instance.

Resolution

GPTEXT 1.x 

Note: 
$SEGMENT_DATA_DIRECTORY here represents the segment data directory of a certain segment.


1. Stop a single GPText Solr instance.

$ /usr/local/greenplum-text/greenplum-solr/bin/solr_ctl -c $SEGMENT_DATA_DIRECTORY/solr/jetty.conf -h $SEGMENT_DATA_DIRECTORY/solr stop

2. Start a single GPText Solr instance.

$ /usr/local/greenplum-text/greenplum-solr/bin/solr_ctl -c $SEGMENT_DATA_DIRECTORY/solr/jetty.conf -h $SEGMENT_DATA_DIRECTORY/solr start


GPTEXT 2.0 and above 

1. Stop a single GPText Solr instance.

SOLR_INCLUDE=$data_dir/solr.in.sh $GPTXTHOME/../greenplum-solr/bin/solr stop
e.g.
SOLR_INCLUDE=/data/gptext/primary2/solr0/solr.in.sh /opt/greenplum-text-3.1.0/../greenplum-solr/bin/solr stop


2. Start a single GPText Solr instance.

SOLR_INCLUDE=$data_dir/solr.in.sh $GPTXTHOME/../greenplum-solr/bin/solr start
e.g.
SOLR_INCLUDE=/data/gptext/primary2/solr0/solr.in.sh /opt/greenplum-text-3.1.0/../greenplum-solr/bin/solr start