Stack Matrix Hub (9)
Sizing Elasticsearch & OpenSearch Heap for Sylius 2.x Catalogs
Partition JVM Xms/Xmx heap at 50% of container budget while leaving OS page cache intact for fast Lucene facet filtering on 50k-250k SKUs.
-Xms2g -Xmx2g (50-150k SKUs) · 50% OS page cache rule · Zero swap
When SQL LIKE & Attribute Joins Break Down on Multi-Facet Grids
Once a Sylius store passes 25,000 SKUs with multi-currency pricing and 15+ product attributes, SQL EAV joins stall category filtering. Offloading catalog search and layered navigation to OpenSearch 2.x drops facet response times below 25 ms.
The 50% JVM Heap Rule for OpenSearch Containers
Never assign more than half of OpenSearch allocated memory to -Xms/-Xmx because Lucene relies heavily on Linux mmap page cache. On a 16 GB UltaHost VDS-2, a -Xms1g -Xmx1g (2 GB container budget) or -Xms2g -Xmx2g (4 GB budget) covers 100k SKUs comfortably.
Measured Thresholds & Configuration
| Catalog Scale | OpenSearch JVM (-Xms/-Xmx) | OS Page Cache Reserve | Recommended Host |
|---|---|---|---|
| 10k - 25k SKUs | Optional (Use SQL Indexes) | N/A | ChemiCloud Cloud VPS 1 (8 GB) |
| 50k - 100k SKUs | -Xms1g -Xmx1g to -Xms2g -Xmx2g | 1.5 - 2.0 GB Linux cache | UltaHost VDS-2 (16 GB) |
| 250k+ B2B SKUs | -Xms4g -Xmx4g | 4.0+ GB Linux cache | Split UltaHost VDS-4 (32 GB) |