6046 Commits

Author SHA1 Message Date
Sergey Matvienko
b30fe6ce26 DefaultTransportApiService validations refactored to a sync style to avoid excessive context switching 2023-11-01 10:51:09 +01:00
Sergey Matvienko
96235dc41e DefaultTransportApiService: handlerExecutor implemented with TB_QUEUE_TRANSPORT_MAX_CORE_HANDLER_THREADS; submit validateCredentials to the handlerExecutor; TB_QUEUE_TRANSPORT_MAX_CORE_HANDLER_THREADS=16 2023-10-31 14:34:39 +01:00
ViacheslavKlimov
9e408cd6f3 Distribute partitions between Rule Engines based only on tenant id 2023-10-27 14:43:12 +03:00
Andrew Shvayka
4705be61f1
Merge pull request #9474 from volodymyr-babak/edge-testIsolatedTenantProfile-fix
Fixed testIsolatedTenantProfile - correct expected number of downlink msgs
2023-10-24 13:29:19 +03:00
Andrew Shvayka
5c404649f3
Merge pull request #9453 from thingsboard/re-consumer-service-refactoring
Rule Engine consumer service refactoring
2023-10-24 13:24:19 +03:00
ViacheslavKlimov
9ca568d070 Improvements for queue-related tests 2023-10-24 13:23:14 +03:00
Andrew Shvayka
464eef2315
Merge pull request #9425 from volodymyr-babak/hotfix/edge-remove-redundant-edge-event-save
Optimizations for Edge Queue Event Storage and Server Load Reduction
2023-10-24 13:12:17 +03:00
Andrii Shvaika
0571f7e6dd Fix compatibility between CE and PE 2023-10-24 12:24:01 +03:00
Volodymyr Babak
802890cdc0 Fixed testIsolatedTenantProfile - correct expected number of downlink msgs 2023-10-23 19:37:38 +03:00
ViacheslavKlimov
60900a0b96 Merge branch 'hotfix/3.6' into re-consumer-service-refactoring
# Conflicts:
#	application/src/main/java/org/thingsboard/server/service/queue/DefaultTbRuleEngineConsumerService.java
2023-10-23 16:41:38 +03:00
Andrew Shvayka
f47dff7fa9
Merge pull request #9430 from smatvienko-tb/feature/componentLifeCycleProto
ComponentLifecycleMsgProto implemented as replacement of raw byte encoding
2023-10-20 17:55:33 +03:00
ViacheslavKlimov
6d7cb95492 Bigger timeout in tests for msg processing 2023-10-20 15:46:53 +03:00
ViacheslavKlimov
aea4d267ff Minor improvements 2023-10-20 15:26:25 +03:00
ViacheslavKlimov
23cd7f0865 Fix testNotificationRuleProcessing_exceededRateLimits 2023-10-20 15:03:24 +03:00
ViacheslavKlimov
2d1640a002 Don't interrupt consumer loop task on stop 2023-10-19 15:29:46 +03:00
ViacheslavKlimov
049f40a62e Clear interruption status after exiting consumer while loop 2023-10-19 14:00:04 +03:00
ViacheslavKlimov
5108e98f38 Minor refactoring 2023-10-19 11:09:58 +03:00
ViacheslavKlimov
ea4eadb47f Cancelling consumer loop task on stop 2023-10-19 11:09:56 +03:00
ViacheslavKlimov
921b2ae4b7 Tests for Rule Engine consumer manager 2023-10-19 11:09:52 +03:00
ViacheslavKlimov
cf951ee2b2 Multiple improvements for Rule Engine consumer services 2023-10-19 11:09:34 +03:00
ViacheslavKlimov
92e0c65a37 Minor refactoring 2023-10-19 11:09:29 +03:00
Andrii Shvaika
c56132d6e8 Minor todos 2023-10-19 11:09:21 +03:00
Andrii Shvaika
3a0afd8a5a Refactoring of the consumer service 2023-10-19 11:09:16 +03:00
Andrii Shvaika
45fd970898 Refactoring in progress 2023-10-19 11:09:11 +03:00
Sergey Matvienko
92a2a90a0b ComponentLifecycleMsgProto implemented as replacement of raw byte encoding 2023-10-18 18:06:40 +02:00
Volodymyr Babak
c5c037b874 Update AlarmControllerTest with latest business logic - no edge notification during alarm udpate 2023-10-18 08:47:03 +03:00
Volodymyr Babak
04cfa2021d Fixed edge controller tests 2023-10-17 18:50:42 +03:00
Andrii Shvaika
7ccad683ab prettify script 2023-10-17 18:41:22 +03:00
Volodymyr Babak
3946b058cd Do not push ALARM update to edge automatically - only using push to edge rule node 2023-10-17 18:09:38 +03:00
Andrii Shvaika
71dd96b084 Fix the widgets_bundle_widget table after upgrade 2023-10-17 18:00:04 +03:00
Volodymyr Babak
8c94ec5c52 Edge: do not sync User login actions. Edge: do not save particular edge events in case edge is not activated or disconnected 2023-10-16 18:05:12 +03:00
Andrew Shvayka
4155f67b04
Merge pull request #9422 from thingsboard/fix/notification-rule-processor-blocking
DefaultNotificationRuleProcessor - submit to executor sooner
2023-10-16 15:24:10 +03:00
Andrew Shvayka
5a1031a8db
Merge pull request #9418 from volodymyr-babak/hotfix/edge-event-processing-executor-service
Edge events are processed in a separate threads to avoid blocking cor…
2023-10-16 15:17:19 +03:00
ViacheslavKlimov
ee080538a4 DefaultNotificationRuleProcessor - submit to notificationExecutor sooner not to block the caller 2023-10-16 15:15:25 +03:00
Volodymyr Babak
8681d2de62 DefaultEdgeNotificationService - Increased deadline timeout to 60 seconds 2023-10-16 15:06:57 +03:00
Volodymyr Babak
e33c3b43a5 DefaultEdgeNotificationService - onSuccess() make ASAP 2023-10-16 13:36:47 +03:00
Volodymyr Babak
fb5c593bb5 Edge events are processed in a separate threads to avoid blocking core consumer threads 2023-10-16 12:54:10 +03:00
Sergey Matvienko
ec6727ff7d TbCoreConsumerStats: core notifications stats by message type 2023-10-15 22:43:05 +02:00
ViacheslavKlimov
9788a87ca3 Fix notification requests deletion test; drop all notifications after test 2023-10-05 12:59:13 +03:00
Sergey Matvienko
c57f0bb8aa SQL_TS_LATEST_BATCH_SIZE decreased from 10k down to 1k to improve concurrent updates on maximum load 2023-10-05 12:53:15 +03:00
Sergey Matvienko
3c8a6bf3b4 SQL_ATTRIBUTES_BATCH_SIZE decreased from 10k down to 1k to improve concurrent updates on maximum load 2023-10-05 12:53:07 +03:00
Sergey Matvienko
6809d374a6 ACTORS_SYSTEM_RULE_DISPATCHER_POOL_SIZE increased from 4 to 8 2023-10-05 12:52:59 +03:00
ViacheslavKlimov
c0294e3878 Don't delete notifications when recipient is deleted 2023-10-04 15:40:04 +03:00
ViacheslavKlimov
6a3beb9213 Remove foreign keys for notification table 2023-10-04 15:38:30 +03:00
ViacheslavKlimov
1a3d7bfab0 Revert initial delay for saveCurrentSystemInfo 2023-10-04 15:30:02 +03:00
ViacheslavKlimov
12d2c26279 Rule Engine stats: exception message truncation 2023-10-04 15:29:45 +03:00
ViacheslavKlimov
69349d5075 TTL for system info 2023-10-04 15:29:37 +03:00
ViacheslavKlimov
6ec4b8cf72 TTL for queue stats and RE exceptions 2023-10-04 15:29:26 +03:00
Sergey Matvienko
7c174de71d BaseController: log experience improvement. use a child class logger instead of abstract class controller 2023-10-04 14:41:44 +03:00
Andrew Shvayka
97243f9de9
Merge pull request #9299 from volodymyr-babak/edge/fix-iso-tenant-queue
Changed order of fetchers to sent tenant profile to the cloud as firs…
2023-09-20 17:47:52 +03:00