Skip to content

Commit

Permalink
Added feature to upgrade KVStore to WiredTiger (#57)
Browse files Browse the repository at this point in the history
*Added feature to upgrade KVStore to WiredTiger

* Added always try to upgrade to mongo 4.0
  • Loading branch information
jewnix authored Feb 5, 2024
1 parent a5c2fc3 commit 7799062
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ a value of `True` when the non-standalone image is built. Thus we have these im
* Install user-seed.conf
* Configure server.conf, inputs.conf with servername
* Configure convenience indexed fields
* Configure `storageEngineMigration` in `server.conf` when `migrate_kvstore` is defined (only needed on version 8.x)
* Always upgrade kvstore from 3.6 to 4.0 (only works on 9.x)
* Upgrade kvstore to latest version when `upgrade_kvstrore` is defined

[templates/kvstore_disable](roles/docker_image_build/templates/kvstore_disable)
* Disables KVStore on primary builds (but overrideable)
Expand Down
9 changes: 9 additions & 0 deletions roles/docker_image_build/templates/base/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
#!/usr/bin/env bash
{{ splunk_home }}/bin/splunk migrate migrate-kvstore-36-40
{% if migrate_kvstore is defined %}
{{ splunk_home }}/bin/splunk start --accept-license --answer-yes --no-prompt
{{ splunk_home }}/bin/splunk stop
{{ splunk_home }}/bin/splunk migrate kvstore-storage-engine --target-engine wiredTiger
{% endif %}
{% if upgrade_kvstore is defined %}
{{ splunk_home }}/bin/splunk migrate migrate-kvstore
{% endif %}
{{ splunk_home }}/bin/splunk start --nodaemon --accept-license --answer-yes --no-prompt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{% if migrate_kvstore is defined %}
[kvstore]
storageEngineMigration = true
{% endif %}

0 comments on commit 7799062

Please sign in to comment.