Merge pull request #11982 from thingsboard/queue-types-deprecation
Queue providers deprecation
This commit is contained in:
commit
d0d79adee2
@ -55,7 +55,8 @@ public class DeprecationService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
log.warn("WARNING: {} queue type is deprecated and will be removed in ThingsBoard 4.0. Please migrate to Apache Kafka", queueTypeName);
|
log.warn("WARNING: Starting with ThingsBoard 4.0, {} will no longer be supported as a message queue for microservices. " +
|
||||||
|
"Please migrate to Apache Kafka. This change will not impact any rule nodes", queueTypeName);
|
||||||
notificationCenter.sendGeneralWebNotification(TenantId.SYS_TENANT_ID, new SystemAdministratorsFilter(),
|
notificationCenter.sendGeneralWebNotification(TenantId.SYS_TENANT_ID, new SystemAdministratorsFilter(),
|
||||||
DefaultNotifications.queueTypeDeprecation.toTemplate(), new GeneralNotificationInfo(Map.of(
|
DefaultNotifications.queueTypeDeprecation.toTemplate(), new GeneralNotificationInfo(Map.of(
|
||||||
"queueType", queueTypeName
|
"queueType", queueTypeName
|
||||||
|
|||||||
@ -1450,7 +1450,9 @@ swagger:
|
|||||||
|
|
||||||
# Queue configuration parameters
|
# Queue configuration parameters
|
||||||
queue:
|
queue:
|
||||||
type: "${TB_QUEUE_TYPE:in-memory}" # in-memory or kafka (Apache Kafka) or aws-sqs (AWS SQS) or pubsub (PubSub) or service-bus (Azure Service Bus) or rabbitmq (RabbitMQ)
|
# in-memory or kafka (Apache Kafka). The following queue types are deprecated and will no longer be supported in ThingsBoard 4.0:
|
||||||
|
# aws-sqs (AWS SQS), pubsub (PubSub), service-bus (Azure Service Bus), rabbitmq (RabbitMQ)
|
||||||
|
type: "${TB_QUEUE_TYPE:in-memory}"
|
||||||
prefix: "${TB_QUEUE_PREFIX:}" # Global queue prefix. If specified, prefix is added before default topic name: 'prefix.default_topic_name'. Prefix is applied to all topics (and consumer groups for kafka).
|
prefix: "${TB_QUEUE_PREFIX:}" # Global queue prefix. If specified, prefix is added before default topic name: 'prefix.default_topic_name'. Prefix is applied to all topics (and consumer groups for kafka).
|
||||||
in_memory:
|
in_memory:
|
||||||
stats:
|
stats:
|
||||||
|
|||||||
@ -376,7 +376,8 @@ public class DefaultNotifications {
|
|||||||
.name("Queue type deprecation")
|
.name("Queue type deprecation")
|
||||||
.type(NotificationType.GENERAL)
|
.type(NotificationType.GENERAL)
|
||||||
.subject("WARNING: ${queueType} deprecation")
|
.subject("WARNING: ${queueType} deprecation")
|
||||||
.text("${queueType} queue type is deprecated and will be removed in ThingsBoard 4.0. Please migrate to Apache Kafka")
|
.text("Starting with ThingsBoard 4.0, ${queueType} will no longer be supported as a message queue for microservices. " +
|
||||||
|
"Please migrate to Apache Kafka. This change will not impact any rule nodes.")
|
||||||
.icon("warning").color(RED_COLOR)
|
.icon("warning").color(RED_COLOR)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
|||||||
@ -47,7 +47,9 @@ zk:
|
|||||||
|
|
||||||
# Queue configuration parameters
|
# Queue configuration parameters
|
||||||
queue:
|
queue:
|
||||||
type: "${TB_QUEUE_TYPE:kafka}" # in-memory or kafka (Apache Kafka) or aws-sqs (AWS SQS) or pubsub (PubSub) or service-bus (Azure Service Bus) or rabbitmq (RabbitMQ)
|
# kafka (Apache Kafka). The following queue types are deprecated and will no longer be supported in ThingsBoard 4.0:
|
||||||
|
# aws-sqs (AWS SQS), pubsub (PubSub), service-bus (Azure Service Bus), rabbitmq (RabbitMQ)
|
||||||
|
type: "${TB_QUEUE_TYPE:kafka}"
|
||||||
prefix: "${TB_QUEUE_PREFIX:}" # Global queue prefix. If specified, prefix is added before default topic name: 'prefix.default_topic_name'. Prefix is applied to all topics (and consumer groups for kafka).
|
prefix: "${TB_QUEUE_PREFIX:}" # Global queue prefix. If specified, prefix is added before default topic name: 'prefix.default_topic_name'. Prefix is applied to all topics (and consumer groups for kafka).
|
||||||
in_memory:
|
in_memory:
|
||||||
stats:
|
stats:
|
||||||
|
|||||||
@ -232,7 +232,9 @@ coap:
|
|||||||
|
|
||||||
# Queue configuration parameters
|
# Queue configuration parameters
|
||||||
queue:
|
queue:
|
||||||
type: "${TB_QUEUE_TYPE:kafka}" # kafka (Apache Kafka) or aws-sqs (AWS SQS) or pubsub (PubSub) or service-bus (Azure Service Bus) or rabbitmq (RabbitMQ)
|
# kafka (Apache Kafka). The following queue types are deprecated and will no longer be supported in ThingsBoard 4.0:
|
||||||
|
# aws-sqs (AWS SQS), pubsub (PubSub), service-bus (Azure Service Bus), rabbitmq (RabbitMQ)
|
||||||
|
type: "${TB_QUEUE_TYPE:kafka}"
|
||||||
prefix: "${TB_QUEUE_PREFIX:}" # Global queue prefix. If specified, prefix is added before default topic name: 'prefix.default_topic_name'. Prefix is applied to all topics (and consumer groups for kafka).
|
prefix: "${TB_QUEUE_PREFIX:}" # Global queue prefix. If specified, prefix is added before default topic name: 'prefix.default_topic_name'. Prefix is applied to all topics (and consumer groups for kafka).
|
||||||
kafka:
|
kafka:
|
||||||
# Kafka Bootstrap Servers
|
# Kafka Bootstrap Servers
|
||||||
|
|||||||
@ -202,7 +202,9 @@ transport:
|
|||||||
|
|
||||||
# Queue configuration parameters
|
# Queue configuration parameters
|
||||||
queue:
|
queue:
|
||||||
type: "${TB_QUEUE_TYPE:kafka}" # kafka (Apache Kafka) or aws-sqs (AWS SQS) or pubsub (PubSub) or service-bus (Azure Service Bus) or rabbitmq (RabbitMQ)
|
# kafka (Apache Kafka). The following queue types are deprecated and will no longer be supported in ThingsBoard 4.0:
|
||||||
|
# aws-sqs (AWS SQS), pubsub (PubSub), service-bus (Azure Service Bus), rabbitmq (RabbitMQ)
|
||||||
|
type: "${TB_QUEUE_TYPE:kafka}"
|
||||||
prefix: "${TB_QUEUE_PREFIX:}" # Global queue prefix. If specified, prefix is added before default topic name: 'prefix.default_topic_name'. Prefix is applied to all topics (and consumer groups for kafka) .
|
prefix: "${TB_QUEUE_PREFIX:}" # Global queue prefix. If specified, prefix is added before default topic name: 'prefix.default_topic_name'. Prefix is applied to all topics (and consumer groups for kafka) .
|
||||||
kafka:
|
kafka:
|
||||||
# Kafka Bootstrap Servers
|
# Kafka Bootstrap Servers
|
||||||
|
|||||||
@ -302,7 +302,9 @@ transport:
|
|||||||
|
|
||||||
# Queue configuration properties
|
# Queue configuration properties
|
||||||
queue:
|
queue:
|
||||||
type: "${TB_QUEUE_TYPE:kafka}" # kafka (Apache Kafka) or aws-sqs (AWS SQS) or pubsub (PubSub) or service-bus (Azure Service Bus) or rabbitmq (RabbitMQ)
|
# kafka (Apache Kafka). The following queue types are deprecated and will no longer be supported in ThingsBoard 4.0:
|
||||||
|
# aws-sqs (AWS SQS), pubsub (PubSub), service-bus (Azure Service Bus), rabbitmq (RabbitMQ)
|
||||||
|
type: "${TB_QUEUE_TYPE:kafka}"
|
||||||
prefix: "${TB_QUEUE_PREFIX:}" # Global queue prefix. If specified, prefix is added before default topic name: 'prefix.default_topic_name'. Prefix is applied to all topics (and consumer groups for kafka).
|
prefix: "${TB_QUEUE_PREFIX:}" # Global queue prefix. If specified, prefix is added before default topic name: 'prefix.default_topic_name'. Prefix is applied to all topics (and consumer groups for kafka).
|
||||||
kafka:
|
kafka:
|
||||||
# Kafka Bootstrap Servers
|
# Kafka Bootstrap Servers
|
||||||
|
|||||||
@ -235,7 +235,9 @@ transport:
|
|||||||
|
|
||||||
# Queue configuration parameters
|
# Queue configuration parameters
|
||||||
queue:
|
queue:
|
||||||
type: "${TB_QUEUE_TYPE:kafka}" # kafka (Apache Kafka) or aws-sqs (AWS SQS) or pubsub (PubSub) or service-bus (Azure Service Bus) or rabbitmq (RabbitMQ)
|
# kafka (Apache Kafka). The following queue types are deprecated and will no longer be supported in ThingsBoard 4.0:
|
||||||
|
# aws-sqs (AWS SQS), pubsub (PubSub), service-bus (Azure Service Bus), rabbitmq (RabbitMQ)
|
||||||
|
type: "${TB_QUEUE_TYPE:kafka}"
|
||||||
prefix: "${TB_QUEUE_PREFIX:}" # Global queue prefix. If specified, prefix is added before default topic name: 'prefix.default_topic_name'. Prefix is applied to all topics (and consumer groups for kafka).
|
prefix: "${TB_QUEUE_PREFIX:}" # Global queue prefix. If specified, prefix is added before default topic name: 'prefix.default_topic_name'. Prefix is applied to all topics (and consumer groups for kafka).
|
||||||
kafka:
|
kafka:
|
||||||
# Kafka Bootstrap Servers
|
# Kafka Bootstrap Servers
|
||||||
|
|||||||
@ -181,7 +181,9 @@ transport:
|
|||||||
|
|
||||||
# Queue configuration parameters
|
# Queue configuration parameters
|
||||||
queue:
|
queue:
|
||||||
type: "${TB_QUEUE_TYPE:kafka}" # kafka (Apache Kafka) or aws-sqs (AWS SQS) or pubsub (PubSub) or service-bus (Azure Service Bus) or rabbitmq (RabbitMQ)
|
# kafka (Apache Kafka). The following queue types are deprecated and will no longer be supported in ThingsBoard 4.0:
|
||||||
|
# aws-sqs (AWS SQS), pubsub (PubSub), service-bus (Azure Service Bus), rabbitmq (RabbitMQ)
|
||||||
|
type: "${TB_QUEUE_TYPE:kafka}"
|
||||||
prefix: "${TB_QUEUE_PREFIX:}" # Global queue prefix. If specified, prefix is added before default topic name: 'prefix.default_topic_name'. Prefix is applied to all topics (and consumer groups for kafka).
|
prefix: "${TB_QUEUE_PREFIX:}" # Global queue prefix. If specified, prefix is added before default topic name: 'prefix.default_topic_name'. Prefix is applied to all topics (and consumer groups for kafka).
|
||||||
kafka:
|
kafka:
|
||||||
# Kafka Bootstrap Servers
|
# Kafka Bootstrap Servers
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user