Commit graph

33 commits

Author SHA1 Message Date
Abhishek K
a1304b43d8
NET-2054: Auto Removal of Offline Nodes, fix enrollment key relay function (#3458)
* check host ports on join

* if 443 not available fallback to 51821

* if 443 not available fallback to 51821

* add config for auto delete of offline nodes

* autocleanup offline nodes

* delete offline nodes on startup

* fix relay via join token
2025-05-24 08:21:47 +05:30
abhishek9686
ded348a320 remove pending delete nodes 2025-03-31 19:05:47 +04:00
momantech
7e2b5b196a
chore: fix some comments (#2918) 2024-05-08 12:17:23 +05:30
Abhishek K
66069fbc34
NET-1082: Scale Testing Fixes (#2894)
* add additional mutex lock on node acls func

* increase verbosity

* disable acls on cloud emqx

* add emqx creds creation to go routine

* add debug log of mq client id

* comment port check

* uncomment port check

* check for connection mq connection open

* use username for client id

* add write mutex on acl is allowed

* add mq connection lost handler on server

* spin off zombie init as go routine

* get whole api path from config

* Revert "get whole api path from config"

This reverts commit 392f5f4c5f.

* update extclient acls async

* add additional mutex lock on node acls func

(cherry picked from commit 5325f0e7d7)

* increase verbosity

(cherry picked from commit 705b3cf0bf)

* add emqx creds creation to go routine

(cherry picked from commit c8e65f4820)

* add debug log of mq client id

(cherry picked from commit 29c5d6ceca)

* comment port check

(cherry picked from commit db8d6d95ea)

* check for connection mq connection open

(cherry picked from commit 13b11033b0)

* use username for client id

(cherry picked from commit e90c7386de)

* add write mutex on acl is allowed

(cherry picked from commit 4cae1b0bb4)

* add mq connection lost handler on server

(cherry picked from commit c82918ad35)

* spin off zombie init as go routine

(cherry picked from commit 6d65c44c43)

* update extclient acls async

(cherry picked from commit 6557ef1ebe)

* additionl logs for oauth user flow

(cherry picked from commit 61703038ae)

* add more debug logs

(cherry picked from commit 5980beacd1)

* add more debug logs

(cherry picked from commit 4d001f0d27)

* add set auth secret

(cherry picked from commit f41cef5da5)

* fix fetch pass

(cherry picked from commit 825caf4b60)

* make sure auth secret is set only once

(cherry picked from commit ba33ed02aa)

* make sure auth secret is set only once

(cherry picked from commit 920ac4c507)

* comment usage of emqx acls

* replace  read lock with write lock on acls

* replace  read lock with write lock on acls

(cherry picked from commit 808d2135c8)

* use deadlock pkg for visibility

* add additional mutex locks

* remove race flag

* on mq re-connecting donot exit if failed

* on mq re-connecting donot exit if failed

* revert mutex package change

* set mq clean session

* remove debug log

* go mod tidy

* revert on prem emqx acls del
2024-04-11 21:18:57 +05:30
Abhishek K
7a9dc3458f
NET-667: force delete daemon node (#2645)
* force delete zombie node

* return correct resp

* fix zombie hosts processing

* add nil check rather checking error

* pr comments
2023-10-31 14:34:28 +04:00
Farukh Khan
9870920aac
NET-541 (#2544)
* NET-541

* Updated both zombie cleanup and expired nodes cleanup go routines to use tick timers for execution.

* NET-541 updated to ticker

* Changed from timer to ticker for periodic execution of zombie cleanup and expired nodes cleanup go routines.

---------

Co-authored-by: Abhishek K <32607604+abhishek9686@users.noreply.github.com>
2023-09-11 09:47:01 +05:30
Farukh Khan
a9a8596d71
NET-507 (#2506)
* NET-507

* Fixed server restart changing the node expiration date to the defaults.

* Removed expired nodes removal from zombie cleanup routine.

* Added a new expired nodes deletion routine which removes expired nodes every hour.

* NET-507 suggested changes

* Possible fix for zombie nodes upon node deletion from the UI.

* Suggested changes implemented for expired nodes deletion go routine.

* NET-507 typo fix

* typo fix for DeleteNode purge parameter
2023-08-10 20:27:44 +05:30
Aceix
68b8d7f600
fix(NET-117): force delete hosts and assoc nodes (#2432) 2023-07-10 10:03:59 +00:00
0xdcarns
80fda83c0c adjusted peer updates to remove peers properly, slowed zombie check 2023-02-23 10:55:42 -05:00
Matthew R Kasun
65b31c1c04 fix tests 2023-02-14 07:58:54 -05:00
Matthew R Kasun
82cac8fa30 use channels for sync 2023-02-14 07:01:38 -05:00
Matthew R Kasun
c3e253fb79 updates to zombie processing 2023-02-13 14:52:39 -05:00
Matthew R Kasun
77cfae41ff remove postup/down 2023-02-02 11:16:54 -05:00
Anish Mukherjee
10ffb517c1 refactor manage zombie logic 2023-01-27 18:57:54 +05:30
Anish Mukherjee
d8fe0b5194 add node to zombie list after expiration 2023-01-27 18:48:03 +05:30
Abhishek Kondur
9f0ef1628c node update fix, nil pointer errors fix 2023-01-06 00:29:55 +05:30
Matthew R. Kasun
38cd4d7700 refactor join
also removes server node
suspect there may be issues with proxy
and UI interactions with nodes
2022-12-20 15:29:09 -05:00
Matthew R. Kasun
c086e9499d rebase
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-12-19 15:15:35 -05:00
Abhishek Kondur
5b7ead91e6 merge conflicts resolved 2022-12-02 10:08:01 +05:30
Matthew R. Kasun
50a1c3a018 changed verbosity for zombie checking log message 2022-11-29 09:42:46 -05:00
Matthew R. Kasun
4df672de68 refactor node deletion 2022-11-15 09:52:17 -05:00
Matthew R. Kasun
faebdce277 add logs when adding nodes to zombie list 2022-10-11 10:26:11 -04:00
Matthew R Kasun
b6417796c5 re-enable zombie processing 2022-10-03 20:27:09 +00:00
afeiszli
48f8dd79e7 disabling zombie logic 2022-08-24 11:04:52 -04:00
Matthew R. Kasun
b2e5b239db fix range check 2022-08-23 16:35:36 -04:00
afeiszli
dbec514d5d doing a backwards loop instead 2022-08-23 15:21:36 -04:00
afeiszli
f07a6dcf2f add handling for slice size reduction to for loop 2022-08-23 15:21:36 -04:00
afeiszli
2db1571afb doing a backwards loop instead 2022-08-23 15:06:49 -04:00
afeiszli
4a247d8f41 add handling for slice size reduction to for loop 2022-08-23 15:06:49 -04:00
Matthew R. Kasun
b354ff9d8a code review changes 2022-06-14 08:30:24 -04:00
Matthew R. Kasun
43c1cea2b0 code review changes 2022-06-14 08:27:30 -04:00
Matthew R. Kasun
d7a470b030 skip yourself when checking zombies 2022-06-13 15:27:49 -04:00
Matthew R. Kasun
efb06f37f7 only check for zombies on same network 2022-06-13 15:19:25 -04:00