Skip to main content
16-Pearl
December 15, 2023
Question

Rebuilding solr index

  • December 15, 2023
  • 1 reply
  • 2410 views

A recent CPS included a major solr server version upgrade 8.x.x to 9.x.x, so itโ€™s recommended to rebuild the index but this took days in dev/test and the index search capability is out until itโ€™s finished. Are there any ways to avoid the outage, perhaps run the two in parallel until the rebuild is done then handover, set the old one to read only somehow? Any suggestions 

1 reply

avillanueva
23-Emerald I
23-Emerald I
December 15, 2023

Do you think things are tuned properly? I have been able to reindex over night but I've been told my system is on smaller end. What indexing rates are you seeing on Dev/Test and do you think Prod will be comparable?  Perhaps by comparing stats, field can determine if you may need to add resources. 

For comparison, Index Admin shows I have 900K objects indexed, 50K being documents with content.

jbailey
18-Opal
December 15, 2023

I just updated CPS and I see around 1M objects indexed in roughly 8 hours... @rhart  -When you go into the bulk index tool, and verify indexing status on your current build of SOLR... How many objects?

16-Pearl
December 15, 2023

Just curious if anyone else has SOLR tuning tips.  This is what I do post-install (on Windows), standalone SOLR install.

 

:: Set Java Heap to 8 GB RAM for improved performance
:: Per CS272602 and CS244688
:: https://www.ptc.com/en/support/article/CS244800
:: File: SolrServer\bin\set_env.bat
REM SET SOLR_HEAP=2048m
SET SOLR_HEAP=8096m


:: Java Tuning
:: Per CS288920, CS151487, and CS203455
:: File: SolrServer\solr\bin\solr.in.cmd
set GC_TUNE=%GC_TUNE% -XX:ParallelGCThreads=2
set GC_TUNE=%GC_TUNE% -XX:ConcGCThreads=2
set GC_TUNE=%GC_TUNE% -XX:+DisableExplicitGC