zmstone
d2f12e03c0
refactor(nodetool): delete stale code
...
lists:join is now available in all supported OTP versions
2024-03-13 09:45:35 +01:00
JimMoen
e57c354a6a
fix(bin/emqx): maxium file descriptors limit and Schedulers limit
...
- File descriptors limit 65536 for `remote_console` and `nodetool`
- Schedulers limit 2 for `remote_console` and limit 1 for `nodetool`
Refer [erl#flags](https://www.erlang.org/doc/man/erl.html#flags )
Thanks [PR Review](https://github.com/emqx/emqx/pull/12466#issuecomment-1924095754 )
2024-02-04 14:13:36 +08:00
JimMoen
5e100f52b8
style: erlfmt all `rebar.config` files and `bin/nodetool`
2023-12-29 09:08:03 +08:00
Zaiming (Stone) Shi
ad09ca9d6d
refactor(nodetool): only add libs when necessary
2023-10-18 14:08:35 +02:00
Zaiming (Stone) Shi
d3779a3219
fix(audit): make 'emqx eval' command auditable
2023-09-27 13:37:09 +02:00
Zaiming (Stone) Shi
a34ab19d93
fix(audit): make emqx eval command auditable
2023-09-22 12:05:45 +02:00
Serge Tupchii
9b3f88aeeb
feat(nodetool): print shutdown status messages while EMQX is stopping
2023-09-12 19:55:16 +03:00
Serge Tupchii
9de9631d6b
fix(nodetool): increase graceful stop timeout, handle and report `{badrpc, timeout}` error
2023-09-12 19:55:16 +03:00
Zaiming (Stone) Shi
d0ccd80850
fix(nodetool): ensure patches dir added for rpm/deb installs
2023-09-04 10:04:44 +02:00
Thales Macedo Garitezi
bc0b0fe9e8
fix(nodetool): add patches directory to head of path
...
This enables us to provide patches that affect `call_hocon` from `bin/emqx`.
2023-08-31 12:40:11 -03:00
JianBo He
73c15d9668
chore: update changes
2023-04-15 21:47:38 +08:00
JianBo He
3a511c6229
fix(gw): load emqx applications before hocon configs checking
2023-04-15 19:41:07 +08:00
Thales Macedo Garitezi
a9d0143d5f
chore(license): change `key` type to `binary()`
...
So that the `raw_default` field in the schema JSON renders properly.
2023-01-11 09:10:04 -03:00
firest
c430218e26
chore: make remsh node name away from the atom DOS attack
...
The remsh node name is generated to be unique, this may cause atom leakage, so we need to change the generation rule to limit the total of these names
2022-11-17 16:41:26 +08:00
Thales Macedo Garitezi
d4416dc581
chore: drop support for license files (ee5.0)
...
Related issue: EMQX-7247
EMQX ee5.0 is to drop support for both the old license format (x509)
and for files containing the new format.
2022-09-14 09:44:59 -03:00
Thales Macedo Garitezi
80d35feb33
fix(license): change schema to allow updating license to different type
...
Before this change, if a license in `emqx.conf` was of type
`key`/`file` and then changed to the opposite type, such change would
be saved to `{cluster,local}-overrides.conf`. When the node restarts
after that, the configs are merged naively and becomes invalid, as it
contains both the `key` and `file` keys, and crashes.
2022-07-28 17:29:59 -03:00
Zaiming (Stone) Shi
b3f16ccb36
fix: Erlang distribution over TLS
2022-06-28 21:49:02 +02:00
Ilya Averyanov
64c59b5469
feat(license): check license before node start
2022-02-11 11:49:29 +03:00
Kian-Meng Ang
fc92e4c8bf
docs: fix typos
2022-01-27 12:29:38 +01:00
Zaiming Shi
01ce32094c
refactor(bin/emax): delete 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
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
d68589e0cb
feat(boot): make possible to boot on short name
2021-07-27 22:16:10 +02:00
Zaiming Shi
6edfb9a6c5
fix(nodetool): add_pathz -> add_patha
2021-06-15 14:48:09 +02:00
Zaiming Shi
c3bbe2c6b6
refactor(bin/emqx): invoke hocon_cli from nodetool
...
nodetool has all lib paths set up correctly by reading the
persisted RELEASES file
calling hocon escript directly has two problems:
1. it may not be able to find the beams compiled
2. if we use ERL_LIBS, it may find the version after hot beam upgrade
2021-06-15 14:12:34 +02:00
Turtle
99c22eb2a8
fix(relup): fix relup badfun
2021-06-05 13:56:27 +08:00
Zaiming Shi
a1162249b5
fix(nodetool): find release in releases
2021-05-13 22:57:44 +02:00
Zaiming Shi
53291ac3ff
fix(nodetool): add path from RELEASES file
2021-05-13 21:59:08 +08:00
Zaiming Shi
3aba50605a
chore(nodetool): ensure correct lib dirs
...
Prioro to this change, ekka lib dir was added by inspecting
the ekka lib version in persisted RELEASES file.
However, this file may not be the true version if a hot
upgrade failed in the middle.
In this fix, it reads the per-version emqx.rel file
content to load lib paths.
2021-05-10 12:04:22 +02:00
Zaiming Shi
6476a5ea92
fix(script): nodetool use remsh prefixed node name
2021-03-24 16:21:15 +01:00
Zaiming Shi
64cfaf4385
improve(print): io:format error message without indentation
...
Avoid squeezing lines to the right.
2021-02-19 07:45:37 +01:00
terry-xiaoyu
151d820058
feature(project): change to rebar3 umbrella project
2020-10-31 11:07:25 +08:00
Ery Lee
1e02cd1363
rm bin and fix README
2012-12-26 14:44:19 +08:00
erylee
efc1d9f424
add bin/ and some files
2012-12-21 17:33:21 +08:00