Queue
KubeMQ Bridges Queue source provides an RPC queue subscriber for processing target commands.

Prerequisites

The following are required to run the queue source connector:
  • kubemq cluster
  • kubemq-bridges deployment

Configuration

Queue source configuration properties:
Property
Required
Description
Possible Values
address
yes
kubemq server address (gRPC interface)
kubemq-cluster-a-grpc.kubemq.svc.cluster.local:50000
client_id
no
sets client_id value for connection
"cluster-a-queue-connection"
auth_token
no
JWT auth token for connection authentication
JWT token
channel
yes
kubemq channel to pull queue messages
queue.a
batch_size
no
sets how many messages the source will pull in one call
default - 1
wait_timeout
no
sets how many seconds to wait per each pull
60
Example:
1
bindings:
2
- name: queue-binding
3
properties:
4
log_level: error
5
retry_attempts: 3
6
retry_delay_milliseconds: 1000
7
retry_max_jitter_milliseconds: 100
8
retry_delay_type: "back-off"
9
rate_per_second: 100
10
sources:
11
kind: source.queue # Sources kind
12
name: 3-clusters-source # sources name
13
connections: # Array of connections settings per each source kind
14
- address: "kubemq-cluster-a-grpc.kubemq.svc.cluster.local:50000"
15
client_id: "cluster-a-queue-connection"
16
auth_token: ""
17
channel: "queue"
18
batch_size: 1
19
wait_timeout: 60
20
- address: "kubemq-cluster-b-grpc.kubemq.svc.cluster.local:50000"
21
client_id: "cluster-b-queue-connection"
22
auth_token: ""
23
channel: "queue"
24
batch_size: 1
25
wait_timeout: 60
26
- address: "kubemq-cluster-c-grpc.kubemq.svc.cluster.local:50000"
27
client_id: "cluster-c-queue-connection"
28
auth_token: ""
29
channel: "queue"
30
batch_size: 1
31
wait_timeout: 60
32
targets:
33
.....
Copied!
Last modified 11mo ago