Workers

更新时间:
复制 MD 格式

When you run a Custom Connector in EventBridge, the connector logic runs inside workers -- Java Virtual Machine (JVM) processes that run connector logic.

Each worker creates a set of tasks -- parallel threads that copy data between a source and a sink. Tasks are stateless and can be started, stopped, or restarted at any time.

Auto-scaling

Serverless App Engine (SAE) provides an elastic and scalable data pipeline for workers. SAE automatically scales the number of worker instances within a configured range based on CPU utilization or memory usage thresholds.

Worker architecture

Kafka Connect compatibility

Worker configuration parameters are compatible with Kafka Connect. EventBridge partially hosts Kafka Connect, so some parameters are preset, some are customizable, and some are locked by the platform.

The following sections describe each category.

Default configuration

EventBridge applies these defaults to all workers:

key.converter=org.apache.kafka.connect.storage.StringConverter
key.converter.schemas.enable=true
value.converter=org.apache.kafka.connect.storage.StringConverter
value.converter.schemas.enable=true

offset.flush.interval.ms=60000
request.timeout.ms=40000
task.shutdown.graceful.timeout.ms=10000

plugin.path=/opt/kafka/connect/plugins
rest.advertised.port=8083
topic.creation.enable=false
listeners=http://:8083

Customizable parameters

Required parameters

These parameters are preset in the EventBridge console.

ParameterDescriptionExample
bootstrap.serversEndpoint for the ApsaraMQ for Kafka instancealikafka-post-cn-7mz301t5****.alikafka.aliyuncs.com:9092
offset.storage.topicApsaraMQ for Kafka topic that stores offset datatopic_offset
config.storage.topicApsaraMQ for Kafka topic that stores configuration datatopic_config
status.storage.topicApsaraMQ for Kafka topic that stores status datatopic_status
group.idConnect cluster group identifier for the workertest

Preset values example:

group.id=connect-eb-cluster-35345
offset.storage.topic=connect-eb-offset-35345
config.storage.topic=connect-eb-config-35345
status.storage.topic=connect-eb-status-35345
consumer.group.id=connector-eb-cluster-mongo-sink
bootstrap.servers=alikafka-pre-cn-zpr3156gn006-1-vpc.alikafka.aliyuncs.com:9092,alikafka-pre-cn-zpr3156gn006-2-vpc.alikafka.aliyuncs.com:9092,alikafka-pre-cn-zpr3156gn006-3-vpc.alikafka.aliyuncs.com:9092

Optional parameters

Custom values for these parameters override EventBridge defaults. For full parameter descriptions, see Kafka Connect Configs.

Serialization and schema

ParameterDescription
key.converterSerialization class for message keys
key.converter.schemas.enableWhether to include schema in key data
value.converterSerialization class for message values
value.converter.schemas.enableWhether to include schema in value data
header.converterSerialization class for message headers

Delivery and consistency

ParameterDescription
exactly.once.source.supportEnable exactly-once semantics for source connectors

Timing and coordination

ParameterDescription
heartbeat.interval.msHeartbeat interval for consumer group coordination
rebalance.timeout.msTimeout for task rebalancing across workers
session.timeout.msSession timeout for consumer group membership
scheduled.rebalance.max.delay.msMaximum delay before rebalancing after a worker departure
worker.sync.timeout.msTimeout for worker synchronization
worker.unsync.backoff.msBackoff interval for unsynced workers
metadata.max.age.msMaximum age of cached metadata before refresh

Network

ParameterDescription
client.dns.lookupDNS lookup strategy
connections.max.idle.msMaximum idle time before a connection is closed
receive.buffer.bytesTCP receive buffer size
request.timeout.msRequest timeout
send.buffer.bytesTCP send buffer size
reconnect.backoff.msInitial backoff interval for reconnection attempts
reconnect.backoff.max.msMaximum backoff interval for reconnection attempts
retry.backoff.msBackoff interval between retries

Offset management

ParameterDescription
offset.flush.interval.msInterval for flushing offsets to storage
offset.flush.timeout.msTimeout for offset flush operations

Access control and REST API

ParameterDescription
access.control.allow.methodsAllowed HTTP methods for CORS
access.control.allow.originAllowed origins for CORS
admin.listenersAdmin REST API listener endpoints

Other

ParameterDescription
client.idClient identifier for broker connections
config.providersExternal configuration providers
connect.protocolConnect protocol version
connector.client.config.override.policyPolicy for connector-level client config overrides
task.shutdown.graceful.timeout.msGraceful shutdown timeout for tasks
topic.tracking.allow.resetAllow topic tracking offset reset
topic.tracking.enableEnable active topic tracking

Non-customizable parameters

Platform-managed defaults

These parameters are locked to EventBridge defaults. Custom values are ignored.

plugin.path
rest.advertised.port
topic.creation.enable
listeners

Security and infrastructure parameters

These parameters are not passed to Kafka Connect.

sasl.*
ssl.*
security.*
rest.advertised.host.name
rest.advertised.listener
rest.extension.classes
client.*
inter.worker.*
metrics.*
metrics.context.*
response.http.headers.config
socket.*