droonga-engine-configure
configures the computer itself as a droonga-engine
node.
The most major usecase of this command is to reset a computer as a clean, blank Droonga Engine node for the droonga-engine-join
command.
This command asks you interactively how to configure the computer, like:
# droonga-engine-configure
The droonga-engine service is now running.
Before reconfiguration, the service is going to be stopped and this node will be unjoined from the cluster.
Are you sure you want to continue reconfiguration? (y/N): y
Do you want all data to be cleared? (y/N): y
Do you want the configuration file "droonga-engine.yaml" to be regenerated? (y/N): y
Do you want the file "catalog.json" to be regenerated? (y/N): y
host [192.168.100.50]:
port [10031]:
tag [droonga]:
log level (trace,debug,info,warn,error,fatal) [warn]:
This command can work silently with command line options when you have complete plan, like:
# droonga-engine-configure \
--no-prompt \
--clear \
--reset-config \
--reset-catalog \
--host nodeX \
--port 20032 \
--tag droonga \
--log-level info
If the droonga-engine
service is correctly registered as a service, this command works only to configure the installed service and some options (not used for the service) are ignored.
--no-prompt
--clear
droonga-engine
service.--reset-config
droonga-engine.yaml
with the new one.
If this option is given, droonga-engine.yaml
is overwritten without confirmation.
Otherwise a confirmation prompt is shown, if there is existing droonga-engine.yaml
.--reset-catalog
catalog.json
with new clean one including only an orphan Engine node.
If this option is given, catalog.json
is overwritten without confirmation.
Otherwise a confirmation prompt is shown, if there is existing catalog.json
.--host=HOST
--port=PORT
10031
by default.--tag=TAG
droonga
by default.--internal-connection-lifetime=SECONDS
60
by default.--log-level=LEVEL
trace
, debug
, info
, warn
, error
and fatal
.
warn
by default.--log-file=PATH
--daemon
, --no-daemon
droonga-engine
service always started as a daemon by the command line service droonga-engine start
, even if these options are given.--pid-file=PATH
droonga-engine
service always stored at the platform specific location by the command line service droonga-engine start
, even if this option is given.--base-dir=PATH
droonga-engine
related files are stored into.
However, the location /home/droonga-engine/droonga/
is always used for the droonga-engine
service started by the command line service droonga-engine start
, even if this option is given.This is installed as a part of a rubygems package droonga-engine
.
# gem install droonga-engine