serhiy-bzhezytskyy opened a new pull request, #201: URL: https://github.com/apache/solr-orbit/pull/201
`solr-orbit install --cluster-config=4gheap` followed by `start` ran Solr with `-Xmx512m`, because `start` never applied the cluster config; `run` already did. `install` now stores `SOLR_HEAP`, `GC_TUNE` and `SOLR_OPTS` in `node-config.json` (older files still load), and `start`, `run` and the Docker build apply them through `ClusterConfigInstance.solr_env()`; the container gets them as environment instead of a fixed 512 MB. `ea`, `fp` and `debug-non-safepoints` set `solr_opts` now, since the `jvm.options` they wrote is not read by Solr, and `debug-non-safepoints` puts `-XX:+UnlockDiagnosticVMOptions` in front of its flag, which the JVM refuses to start without. The user's `--cluster-config-params` are applied once, after the merge of the list; a value with colons, `solr_opts:-XX:+UseG1GC`, is read; a number such as `heap_size:512` reaches the environment as a string. A `--distribution-version` such as `10.1.0-SNAPSHOT` or `main` selects a cluster-config branch. The OpenSearch `jvm.options` and `log4j2.properties` templates are no longer copied into the installation. | node started with `--cluster-config=4gheap,ea`, Solr 10.1.0 | JVM flags of the node | |---|---| | this change | `-Xms4g -Xmx4g -ea`, and `-Xms4g -Xmx4g` in `commandLineArgs` of `/solr/admin/info/system` | | `main` | `-Xmx512m`, the heap of the default config | Test with: ``` solr-orbit install --distribution-version=10.1.0 --cluster-config=4gheap,ea --http-port=18999 --node-name=n --master-nodes=n solr-orbit start --installation-id=<id> --test-run-id=t curl -s localhost:18999/solr/admin/info/system | grep -o '"commandLineArgs":\[[^]]*' pytest tests -q # 1293 passed, 5 skipped ``` Behaviour that changes: `ea` and `fp` need a base (`4gheap,ea`, as the docs show; the error says to name one); `solr_opts` of `--cluster-config-params` replaces the options of the presets; `install` and `start` use the 1g heap of the default config. Not covered: nothing else in the runtime is changed here; the renames and removals that go with it are apache/solr-orbit#197. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
