-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
9 changed files
with
85 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
services: | ||
broker-replicator-dst: | ||
image: confluentinc/cp-server:${CFLT_TAG} | ||
hostname: broker-replicator-dst | ||
container_name: broker-replicator-dst | ||
profiles: | ||
- clusterlinking | ||
environment: | ||
KAFKA_NODE_ID: 1 | ||
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: "CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT" | ||
KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://broker-replicator-dst:29092" | ||
KAFKA_DEFAULT_REPLICATION_FACTOR: 1 | ||
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 | ||
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0 | ||
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1 | ||
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1 | ||
KAFKA_CONFLUENT_BALANCER_TOPIC_REPLICATION_FACTOR: 1 | ||
KAFKA_CONFLUENT_METADATA_TOPIC_REPLICATION_FACTOR: 1 | ||
KAFKA_CONFLUENT_LICENSE_TOPIC_REPLICATION_FACTOR: 1 | ||
KAFKA_CONFLUENT_SECURITY_EVENT_LOGGER_EXPORTER_KAFKA_TOPIC_REPLICAS: 1 | ||
KAFKA_CONFLUENT_CLUSTER_LINK_METADATA_TOPIC_REPLICATION_FACTOR: 1 | ||
KAFKA_CONFLUENT_REPORTER_RESULT_TOPIC_REPLICATION_FACTOR: 1 | ||
KAFKA_CONFLUENT_BALANCER_ENABLE: false | ||
KAFKA_AUTO_CREATE_TOPICS: true | ||
KAFKA_PROCESS_ROLES: "broker,controller" | ||
KAFKA_CONTROLLER_QUORUM_VOTERS: "1@broker-replicator-dst:29093" | ||
KAFKA_LISTENERS: "PLAINTEXT://broker-replicator-dst:29092,CONTROLLER://broker-replicator-dst:29093" | ||
KAFKA_INTER_BROKER_LISTENER_NAME: "PLAINTEXT" | ||
KAFKA_CONTROLLER_LISTENER_NAMES: "CONTROLLER" | ||
KAFKA_LOG_DIRS: "/tmp/kraft-combined-logs" | ||
KAFKA_LOG4J_LOGGERS: "org.apache.kafka.image.loader.MetadataLoader=WARN" | ||
CLUSTER_ID: "N3Ept9vxTMijB5S74gkfPA" | ||
KAFKA_CONFLUENT_HTTP_SERVER_LISTENERS: http://0.0.0.0:8090 | ||
KAFKA_REST_BOOTSTRAP_SERVERS: "broker-replicator-dst:29092" | ||
KAFKA_OPTS: "-javaagent:/tmp/jmx_prometheus_javaagent-1.1.0.jar=1234:/tmp/kafka_config.yml" | ||
volumes: | ||
- $PWD/jmx-exporter/jmx_prometheus_javaagent-1.1.0.jar:/tmp/jmx_prometheus_javaagent-1.1.0.jar | ||
- $PWD/jmx-exporter/kafka_broker.yml:/tmp/kafka_config.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -174,29 +174,13 @@ To test: | |
|
||
### Cluster Linking | ||
|
||
Demo is based on https://github.com/confluentinc/demo-scene/tree/master/cluster-linking-disaster-recovery | ||
To test use dev-toolkit with _clusterlinking_ profile: | ||
|
||
To test follow the next steps: | ||
|
||
1. Set env: | ||
```bash | ||
MONITORING_STACK=jmxexporter-prometheus-grafana | ||
``` | ||
2. Clone demo cluster linking disaster recovery from confluentinc/demo-scene: | ||
```bash | ||
[[ -d "clink-demo" ]] || git clone [email protected]:confluentinc/demo-scene.git clink-demo | ||
(cd clink-demo && git fetch && git pull) | ||
``` | ||
3. Start the monitoring solution with the STACK selected. This command also starts clink-demo, you do not need to start clink-demo separately. | ||
|
||
```bash | ||
${MONITORING_STACK}/cluster-linking/start.sh | ||
``` | ||
|
||
4. Stop the monitoring solution. This command also stops clink-demo, you do not need to stop clink-demo separately. | ||
1. Start dev-toolkit with | ||
|
||
```bash | ||
${MONITORING_STACK}/cluster-linking/stop.sh | ||
$ cd dev-toolkit | ||
$ start.sh --profile clusterlinking | ||
``` | ||
|
||
![clusterlinking](img/clusterlinking.png) | ||
|
@@ -208,7 +192,7 @@ ${MONITORING_STACK}/cluster-linking/stop.sh | |
|
||
### KRaft | ||
|
||
To test use dev-toolkit with _Default_ profile: | ||
To test use dev-toolkit with _default_ profile: | ||
|
||
1. Start dev-toolkit with | ||
|
||
|
57 changes: 0 additions & 57 deletions
57
jmxexporter-prometheus-grafana/cluster-linking/docker-compose.override.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.