Commit Graph

115 Commits

Author SHA1 Message Date
Thales Macedo Garitezi
f3bbcd2c79
chore(nodetool): always print result 2021-12-24 08:21:21 -03:00
Thales Macedo Garitezi
67cca5d3a1
chore(mix): use the same script in mix release as in rebar release
Surprisingly enough, by doing small cirurgical changes in the existing
EMQX control scripts, we are able to get it running with Elixir and
with existing functionalities (`console`, `remote_console`, `start`,
`stop`, `ctl`, `foreground`, `eval`).
2021-12-23 17:20:04 -03:00
Thales Macedo Garitezi
014b6d3cfd
chore(shellcheck): fix shellcheck linting warnings 2021-12-22 15:43:43 -03:00
Thales Macedo Garitezi
62024854e5
chore(mix): wrap produced script and set required variables
We create a shim script that calls the one produced by Mix Release,
creating and setting the required configurations.
2021-12-22 15:15:19 -03:00
Thales Macedo Garitezi
a5939790c5
refactor(bin): extract common script functionalities into separate files
In order for us to reuse most of the functionalities implemented in
`bin/eqmx` also in the Elixir release script, common variable and
function definitions are extracted in separated bash files that can be
sourced by both Rebar and Elixir release scripts.
2021-12-22 10:35:06 -03:00
Zaiming (Stone) Shi
a681079ba7 refactor: remove special env override from schema
EMQX_NODE_NAME and EMQX_NODE_COOKIE are translated into
EMQX_NODE__NAME and EMQX_NODE__COOKIE
2021-12-06 08:00:42 +01:00
Zaiming (Stone) Shi
2a3f58f8ed chore: add a comment in bin/emqx to warn the config overlay 2021-12-06 08:00:42 +01:00
zhongwencool
f697028b70
Fix ping not return pong (#6285)
* fix: ./bin/emqx ping return pong

* chore: waiting longer for logger flush log to disk

* fix: change swagger page's limit from 100 to 1000

* chore: type wrong

* fix: sync log to disk by logger_disk_log_h:filesync
2021-11-26 17:02:45 +08:00
Zaiming Shi
79d9f55dd6 build: copy only libcrypto and libtinfo 2021-11-22 15:46:38 +01:00
Zaiming (Stone) Shi
fc7eb21083
Merge pull request #6158 from Spycsh/window-space
fix: fix starting error when path contains space
2021-11-20 08:47:26 +01:00
William Yang
8f01a8de8c fix: source emqx_vars in node_dump tool 2021-11-17 11:45:48 +01:00
William Yang
b1fcab24cc fix(node_dump): locate log dir for package installation 2021-11-16 20:33:28 +01:00
Spycsh
356137dbb4 fix: fix starting error when path contains space 2021-11-12 21:52:42 +01:00
Zaiming Shi
00d3a832ba chore(bin/emqx): delete unused cookie file chown 2021-11-12 14:56:14 +01:00
Zaiming (Stone) Shi
c89132e968
Merge pull request #6117 from zmstone/chore-safer-bash-flags
refactor bin/emqx
2021-11-12 07:48:09 +01:00
Zaiming Shi
e484fcc8c3 chore(bin/emqx): write sensible log if node not initialized 2021-11-10 21:15:54 +01:00
Zaiming Shi
160825095a chore(bin/emqx): add more usage prints 2021-11-10 20:19:38 +01:00
Shawn
e8cb8a3aa4 fix(relup): configs for plugins are missing after relup 2021-11-10 09:32:49 +08:00
Zaiming Shi
cf06ceb921 chore(bin/emqx): fix a typo in bash function 2021-11-09 23:00:53 +01:00
Zaiming Shi
25248a9e21 chore(bin/emqx): delete boot file start option
we have never tested using alternative boot file to start EMQ X
drop it
2021-11-09 23:00:53 +01:00
Zaiming Shi
9b9a070168 chore(bin/emqx): add default values for bash vars 2021-11-09 23:00:53 +01:00
Zaiming Shi
1480bb6158 chore(bin/emqx): delete RELX_CONFIG_PATH
this variable is to allow setting sys.config by user
however this feature is now broken because the
we always generate app.<time>.config
2021-11-09 23:00:53 +01:00
Zaiming Shi
a27b452fe7 chore(bin/emqx): bash set -o 2021-11-09 22:59:09 +01:00
Zaiming Shi
fdc4bb06d3 build: copy dynamic libs for zip package 2021-11-08 17:16:05 +01:00
Zaiming Shi
ee817cfa6f fix(bin/emqx): mnesia dir name after node 2021-11-08 13:34:12 +01:00
zhongwencool
d784e63b9f
emqx_conf (#5939)
* feat(emqx_conf): move conf manager for emqx_machine to emqx_conf

* chore(emqx_conf): change emqx:get_config/2 to emqx_conf:get/2

* fix: common test failed

* fix: badmatch by typo wrong key

* fix(emqx_conf): get the wrong core nodes

* fix(emqx_conf): get core node's tnx_id not latest tnx_id

* fix: add ro_transation when copy conf file

* fix: delete debug info

* fix: change ekka_rlog to mria_rlog

* fix: remove cluster_rpc from emqx_machine.

* fix: don't call ekka:start/0 explicitly

* fix: ekka should be start in emqx_machine
2021-10-21 18:08:51 +08:00
Spycsh
c3b980fde9 chore: fix Windows compilation process 2021-09-27 21:24:10 +08:00
Zaiming Shi
c2cf6b79b3 fix(bin/emqx): print pid info after wait 2021-09-27 11:36:04 +02:00
Zaiming Shi
a17b3ad6ae chore(bin/emqx): print pid info if failed to stop 2021-09-27 10:34:21 +02:00
Zaiming Shi
01ce32094c refactor(bin/emax): delete cold_eval 2021-09-10 07:28:12 +02:00
Zaiming Shi
cca3a4414f fix(bin/emqx): do not try to find vm.args file for cold_eval 2021-09-10 07:28:12 +02:00
Zaiming Shi
6f99f14540 feat(bin/emqx): add cold_eval nodetool command 2021-09-10 07:27:01 +02:00
zhongwencool
468102f462 chore: replace recon by obsserver_cli 1.7.0 2021-08-27 13:55:49 +08:00
Zaiming Shi
31b1646611 feat: inspect parent pid if emqx pid enters defunct state 2021-08-10 00:24:16 +02:00
Zaiming Shi
1a80b9dc47 fix: bin/emqx change use ps -p to check if pid is running 2021-08-09 22:46:31 +02:00
Zaiming Shi
cd92f73ca1 test: add debug print 2021-08-09 22:09:11 +02:00
Zaiming Shi
f1262e04bf feat: log error if timed out waiting after init:stop 2021-08-09 10:28:30 +02:00
Zaiming Shi
668ecbe97b fix: improve node stop wait loop 2021-08-09 10:28:04 +02:00
Zaiming Shi
9f3063a823 refactor: bin/emqx call fucntions for error logs 2021-08-09 10:28:04 +02:00
Zaiming Shi
562ce1a81b feat: bin/emqx pass down DEBUG if su exec 2021-08-08 11:14:20 +02:00
Zaiming Shi
bc23ff5e47 feat: add graceful shutdown
prior to this cahnge emqx node shutdown is done by init:stop
which might have undesired stop order of the applications

in this change, emqx_machine_terminator is added to stop apps
in defined order and then terminate the node in infinite loop
2021-08-05 14:11:58 +02:00
Zaiming Shi
522d8e0a4a refactor(config): split config and schema 2021-08-04 08:36:10 +02:00
Zaiming (Stone) Shi
3d0cb11682
Merge pull request #5374 from zmstone/chore-delete-emqx-name-and-emqx-host-env-var
chore: delete EMQX_NAME and EMQX_HOST env variables
2021-08-03 17:08:50 +02:00
Zaiming Shi
2fd0742d2b refactor(emqx_ctl): simplify emqx_ctl 2021-08-02 20:35:24 +02:00
Zaiming Shi
8d687e50fd chore: delete EMQX_NAME and EMQX_HOST env variables 2021-07-31 12:02:38 +02:00
Zaiming (Stone) Shi
cb2909dfbf
Merge pull request #5369 from zmstone/fix-boot-log
fix(bin/emqx): fix boot log
2021-07-31 08:53:15 +02:00
Zaiming Shi
2e3c98dd55 fix(bin/emqx): fix boot log
prior to this fix the logger message (syslog) has the name and pid
missing.
with this change, the programe name, and its boot command is logged
to syslog, so the console boot is cleaner
2021-07-31 00:29:53 +02:00
Zaiming Shi
d68589e0cb feat(boot): make possible to boot on short name 2021-07-27 22:16:10 +02:00
Zaiming Shi
02206dd428 fix(bin/emqx): delete stale todo 2021-07-27 20:33:29 +02:00
Shawn
f8f7493352 fix(test): set RETRY_INTERVAL and MAX_TOPIC_ALIAS for paho test 2021-07-17 17:36:01 +08:00