Absence of --dump-import as a environment variable makes version updates complex #218
Replies: 4 comments 1 reply
-
Feature request and feedback are not in this repo anymore but in the |
Beta Was this translation helpful? Give feedback.
-
Thanks, @bidoubiwa! If there was such an environment variable, it would make little sense to point it to a .dump file specifically. On the other hand, in a more general way, we could have an This environment variable allows to do this in an ad-hoc way and seems to make sense to facilitate the precise import of a dump, which seems to be an operation that is not repeated multiple times for the same exact dump. |
Beta Was this translation helpful? Give feedback.
-
FYI @bidoubiwa As we will work on a configuration file for v0.30, we will also consider introducing the following consistency rule. All configuration variables must be modifiable via the configuration file, as an env var and as a cli option. Sometimes the cloud team asks us env vars that they need that are only accessible via a CLI option when requested. e.g meilisearch/meilisearch#2721 By introducing that consistency rule, we'd like to avoid this kind of back and forth and make everyone's job easier. |
Beta Was this translation helpful? Give feedback.
-
Hey 👋 Locking this discussion since it has been released with 📚 https://docs.meilisearch.com/learn/configuration/instance_options.html#import-dump |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
The flag
--dump-import
has no related environment variable (see doc). This causes the import dump process in environments where meilisearch runs a service to be complex.For example, if MeiliSearch runs with
systemctl
the launch command is located in the following file:/etc/systemd/system/meilisearch.service
In this file the following line is present:
I could edit the file with a script but it would mean I have to edit it once to add --import-dump flag and once to remove it.
So this is another solution I used to avoid file parsing, and string manipulation:
Imagine I want to update my MeiliSearch version and create a dump before hands. This is the current script:
--import-dump
with the dump id of step 1./meilisearch --import-dump --db-path /var/lib/meilisearch/data.ms
It is now updated to the new MeiliSearch version
If we had
MEIL_DUMP_IMPORT
the migration would have been as follow:MEILI_DUMP_IMPORT
MeiliSearch version: v0.22.0
Beta Was this translation helpful? Give feedback.
All reactions