Commit Graph

36 Commits

Author SHA1 Message Date
Zaiming (Stone) Shi 5629cf3219 test: fix env name in test script 2024-02-02 16:59:47 +01:00
Ivan Dyachkov 82bac3e136 Merge remote-tracking branch 'upstream/release-53' into 1018-sync-r53 2023-10-18 08:04:45 +02:00
Ivan Dyachkov 898279099b ci: update remaining docker images in workflows to use public.ecr.aws 2023-10-17 22:36:43 +02:00
Andrew Mayorov d0dac25644
chore(ci): stop depending on git in `check-example-configs.sh` 2023-10-13 00:10:46 +07:00
Zaiming (Stone) Shi 2c13a26cac test: add support of ipv6 in start-two-nodes-in-docker.sh 2023-10-10 10:05:14 +02:00
Zaiming (Stone) Shi 5e08c436da test: add bat test for corrupted cluster.hocon 2023-09-27 13:37:09 +02:00
zhongwencool fa082b7a4d test: improve echo msg for smoke test 2023-09-21 14:12:23 +08:00
Zaiming (Stone) Shi 41de679557 ci: run example config check in ci 2023-06-27 14:23:18 +02:00
Zaiming (Stone) Shi a069b351fd test: add test script to verify config example files 2023-06-27 14:23:18 +02:00
Zaiming (Stone) Shi f95787d229 test: make possible to test core/replica locally 2023-06-20 12:42:00 +02:00
Thales Macedo Garitezi 99796224d8 refactor(resource): rename `request_timeout` -> `request_ttl`
See
https://emqx.atlassian.net/wiki/spaces/P/pages/612368639/open+e5.1+remove+auto+restart+interval+from+buffer+worker+resource+options
2023-06-01 13:01:53 -03:00
Thales Macedo Garitezi 10425eb925 feat(resource): deprecate `auto_restart_interval` in favor of `health_check_interval`
See:
https://emqx.atlassian.net/wiki/spaces/P/pages/612368639/open+e5.1+remove+auto+restart+interval+from+buffer+worker+resource+options

Current problem:

In 5.0.x, we have two timer options that control the state changing of buffer worker
resources: auto_restart_interval and health_check_interval.

- auto_restart_interval controls how often the resource attempts to transition from
disconnected to connected.

- health_check_interval controls how often the resource is checked and potentially moved
from connected to disconnected or connecting.

The existence of two independent timers for very similar purposes is confusing to users,
QA and even developers.  Also, an intimately related configuration is request_timeout,
which can interact badly with auto_restart_interval if the latter is poorly configured:
requests may always expire if request_timeout < auto_restart_interval and if the resource
enters the disconnected state.  For health_check_interval, we attempt to derive a sane
default that gives requests a chance to retry (if request timeout is finite, then the
resource retries requests with a period of min(health_check_interval, request_timeout /
3).

Another problem with the separate auto_restart_interval is that its default value (60 s)
is too high when compared to the default request timeout and health check, leading to the
problems described above if not tuned.

Proposed solution:

We propose to drop auto_restart_interval in favor of health_check_interval, which will be
used for both disconnected -> connected and connected -> {disconnected, connecting}
transition checks.  With that, the resource will attempt to reconnect at the same interval
as the health check, which currently is 15 s.

Also, as two smaller changes to accompany this one:

- Increase the default request_timeout from 15 s to 45 s.
- Rename request_timeout to request_ttl.
2023-06-01 11:20:06 -03:00
Zaiming (Stone) Shi 7c1b453285 refactor: stop creating emqx-enterprise.conf 2023-05-08 15:16:27 +02:00
Zaiming (Stone) Shi 0bd30e039f test: simplify swagger json check script 2023-04-26 14:41:33 +02:00
Zaiming (Stone) Shi 48e68b7c77 test: add smoke test to cover schemas api 2023-04-26 14:41:33 +02:00
Thales Macedo Garitezi e073bc90bc refactor(buffer_worker): rename `s/queue/buffer/g` 2023-04-14 11:37:19 -03:00
Zaiming (Stone) Shi 75817e23bd test: add some tests for EMQX boot failures 2023-03-30 14:03:23 +02:00
Kjell Winblad 8e0d315b7b
Merge pull request #10197 from kjellwinblad/0321-fix-inflight-window-hand-over-to-kjell
fix: add inflight window setting to the clickhouse bridge
2023-03-29 09:38:24 +02:00
Zaiming (Stone) Shi 0aab24d917 ci: do not check hidden fields if running older version 2023-03-28 16:03:55 +02:00
Zaiming (Stone) Shi 3a88e7739d test: add swagger check to smoke tests 2023-03-28 14:29:24 +02:00
Serge Tupchii 9f006d0e2a ci: run start-two-nodes-in-docker.sh test script in CI
Closes: EMQX-8884
2023-03-24 19:06:26 +02:00
Kjell Winblad 35474578ca refactor: rename async_inflight_window to inflight_window everywhere 2023-03-23 14:21:57 +01:00
Zaiming (Stone) Shi 8d63c6c08d
Merge pull request #10041 from zmstone/0228-add-influx-line-protocol-desc
0228 add influx line protocol desc
2023-03-01 08:44:26 +01:00
Zaiming (Stone) Shi 8d00c003a9 test: fix test script 2023-02-28 21:06:17 +01:00
Zaiming (Stone) Shi 24f476e35f test: add README to influxdb test script 2023-02-28 19:38:43 +01:00
Zaiming (Stone) Shi 2682a1ee28 test: use static balancing for dashboard backend in haproxy 2023-02-28 11:56:46 +01:00
Zaiming (Stone) Shi 97d08553c1 test: fix test script to use provided boot script 2023-02-21 09:09:51 +01:00
Ivan Dyachkov 739455d844 ci: test docker images and packages in the same way 2023-02-17 17:42:46 +01:00
Zaiming (Stone) Shi fea310cf93 test: use different loop back address in script which starts two nodes 2023-02-17 13:22:15 +01:00
Zaiming (Stone) Shi 8fcce53a0d test: add script to run two nodes in host from the same build 2023-02-16 14:35:50 +01:00
Zaiming (Stone) Shi 0c80c31c9e test: delete log override from influxdb bridge test script 2023-01-31 20:43:59 +01:00
Erik Timan 424d6ed34b test: improve start.sh script for influxdb tests 2023-01-24 14:42:52 +01:00
Erik Timan 21e933e9bb test: add rule to influx-bridge.conf and add newlines 2023-01-24 14:37:15 +01:00
Erik Timan fbfd4a2565 test: use EMQX_IMAGE_TAG for influx test script 2023-01-24 14:13:03 +01:00
Erik Timan 9fc586f670 test: add influx docker test certs 2023-01-24 13:58:37 +01:00
Erik Timan 502b826396 test: add influxdb docker test files 2023-01-24 13:58:37 +01:00