Skip to content

Commit d435b42

Browse files
authored
Merge pull request #44 from emqx/20250409-add-more-tests
chore: add 1M / 1M TPS and 10M / 1M TPS tests
2 parents 2af0b84 + ca28da2 commit d435b42

File tree

5 files changed

+340
-70
lines changed

5 files changed

+340
-70
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
- hosts: emqx5
2+
run_once: true
3+
become: true
4+
tasks:
5+
- name: ensure cluster is healthy
6+
ansible.builtin.shell: |
7+
emqx ctl cluster status --json
8+
register: cluster_status
9+
10+
- name: ensure stopped_nodes array is empty
11+
assert:
12+
that: cluster_status.stdout | from_json | json_query('stopped_nodes') == []
13+
14+
- name: ensure core rebalance is not running
15+
ansible.builtin.shell: |
16+
emqx ctl cluster core rebalance status
17+
register: rebalance_status_init
18+
failed_when: '"not_started" not in rebalance_status_init.stdout'
19+
20+
- name: start rebalance
21+
ansible.builtin.shell: |
22+
emqx ctl cluster core rebalance plan
23+
emqx ctl cluster core rebalance confirm
24+
25+
- name: wait for rebalance to complete
26+
ansible.builtin.shell: |
27+
emqx ctl cluster core rebalance status
28+
register: rebalance_status
29+
until: rebalance_status.stdout == '{complete,[]}'
30+
retries: 360
31+
delay: 5

locals.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ locals {
99
region = try(local.spec.region, "eu-north-1")
1010
instance_type = try(local.spec.instance_type, "t3.large")
1111
ami_filter = try(local.spec.ami_filter, "*ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-*")
12-
ami_owner = try(local.spec.ami_owner, "amazon")
12+
ami_owner = try(local.spec.ami_owner, "099720109477")
1313
remote_user = try(local.spec.remote_user, "ubuntu")
1414
use_spot_instances = try(local.spec.use_spot_instances, true)
1515
enable_ipv6 = try(local.spec.enable_ipv6, false)

0 commit comments

Comments
 (0)