StackSaga Mysql-Agent Configuration Properties
Stacksaga MYSQL agent does support both eureka based and kubernetes based environments. There is a list of common configuration properties for both and as well as there are some configuration properties specific to eureka and kubernetes.
Common Configuration Properties
| Property Name | Default Value | Type | Description |
|---|---|---|---|
|
|
|
There are two profiles available as |
|
|
|
The name of the agent application. |
|
|
|
The port of the agent service. |
NOTE: Due to Agent service internally uses default {data_source} for managing connection, It can be configured the datasource properties in the same way that spring boot provides. |
|||
|
- |
|
The name of the target service. (The transactions are fetched based on this name from the event-store) |
|
- |
|
The host name of the target service that retry tasks should be submitted to. |
Thread-Pool of Parallel Processing: Agent service uses a thread-pool to process the retry tasks in parallel. Each thread is responsible for processing one or more partitions (virtual nodes). |
|||
|
|
|
how many local partitions (virtual nodes) should be created to process the retry in parallel. by default, it is set to the number of available processors. the entire token range is divided into these partitions, and each partition is assigned to one thread. |
|
|
|
how many records should be fetched in one batch from the event-store when retrying the failed transactions. |
|
|
|
how often the retry task should be executed. every 2 minutes triggers the retry task based on UTC time. |
|
|
|
the delay between each retry attempt for internal service communication failures. |
|
|
|
the maximum number of retry attempts for internal service communication failures. |
Eureka profile’s Configuration Properties
If you are in the Eureka environment, then you have to configure the following configuration properties.
Property Name |
Default Value |
Type |
Property Description |
|
- |
|
The type of this agent. Whether this agent is master or slave. in the cluster, it should have at least one master node. |
|
- |
|
If the instance is a slave instance, the instance id of the master instance that this slave should connect to. if master instance also works as a slave, the master instance id should be provided. |
NOTE: In addition to the target eureka service details, The following meta-data should be added in the |
|||
|
|
|
The region that the application is deployed. |
|
|
|
The zone that the application is deployed. |
Kubernetes profile’s Configuration Properties
If you are in the kubernetes environment, then you have to configure the following configuration properties.
Property Name |
Default Value |
Type |
Description |
|
|
|
the topology name of the zone in the kubernetes cluster. |
|
|
|
the topology name of the region in the kubernetes cluster. |
|
|
|
the namespace that the application is deployed in the kubernetes cluster. |
|
|
|
the service host name of the agent service. |