From 5234a80cdc97798162d03546eb8e0ee163c0ad60 Mon Sep 17 00:00:00 2001 From: seeflood <349895584@qq.com> Date: Fri, 18 Mar 2022 16:36:07 +0800 Subject: [PATCH] delete config_apollo_health_mq.json (#423) --- configs/config_apollo_health_mq.json | 104 ----------------------- docs/en/component_specs/pubsub/common.md | 2 +- docs/en/component_specs/pubsub/redis.md | 2 +- docs/en/start/pubsub/start.md | 2 +- docs/zh/component_specs/pubsub/common.md | 2 +- docs/zh/component_specs/pubsub/redis.md | 2 +- docs/zh/start/pubsub/start.md | 2 +- 7 files changed, 6 insertions(+), 110 deletions(-) delete mode 100644 configs/config_apollo_health_mq.json diff --git a/configs/config_apollo_health_mq.json b/configs/config_apollo_health_mq.json deleted file mode 100644 index 1604c7d642..0000000000 --- a/configs/config_apollo_health_mq.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "servers": [ - { - "default_log_path": "stdout", - "default_log_level": "DEBUG", - "routers": [ - { - "router_config_name": "actuator_dont_need_router" - } - ], - "listeners": [ - { - "name": "grpc", - "address": "127.0.0.1:34904", - "bind_port": true, - "filter_chains": [ - { - "filters": [ - { - "type": "tcpcopy", - "config": { - "strategy": { - "switch": "ON", - "interval": 30, - "duration": 10, - "cpu_max_rate": 80, - "mem_max_rate": 80 - } - } - }, - { - "type": "grpc", - "config": { - "server_name": "runtime", - "grpc_config": { - "hellos": { - "helloworld": { - "hello": "greeting" - } - }, - "config_store": { - "apollo": { - "address": [ - "http://106.54.227.205:8080" - ], - "metadata": { - "app_id": "testApplication_yang", - "cluster": "default", - "namespace_name": "dubbo,product.joe,application", - "is_backup_config": "true", - "secret": "6ce3ff7e96a24335a9634fe9abca6d51", - "open_api_token": "947b0db097d2931ba5bf503f1e33c10394f90d11", - "open_api_address": "http://106.54.227.205", - "open_api_user": "apollo" - } - } - }, - "pub_subs": { - "redis": { - "metadata": { - "redisHost": "localhost:6380", - "redisPassword": "" - } - } - }, - "app": { - "app_id": "test111", - "grpc_callback_port": 9999 - } - } - } - } - ] - } - ] - }, - { - "name": "actuator", - "address": "127.0.0.1:34999", - "bind_port": true, - "filter_chains": [ - { - "filters": [ - { - "type": "proxy", - "config": { - "downstream_protocol": "Http1", - "upstream_protocol": "Http1", - "router_config_name": "actuator_dont_need_router" - } - } - ] - } - ], - "stream_filters": [ - { - "type": "actuator_filter" - } - ] - } - ] - } - ] -} diff --git a/docs/en/component_specs/pubsub/common.md b/docs/en/component_specs/pubsub/common.md index fee409f5d8..31cecd5b07 100644 --- a/docs/en/component_specs/pubsub/common.md +++ b/docs/en/component_specs/pubsub/common.md @@ -12,7 +12,7 @@ The json configuration file has the following structure: } } ``` -You can configure the key/value configuration items that the component cares about in the metadata. For example, [redis component configuration](https://github.com/mosn/layotto/blob/main/configs/config_apollo_health_mq.json) is as follows: +You can configure the key/value configuration items that the component cares about in the metadata. For example, [redis component configuration](https://github.com/mosn/layotto/blob/main/configs/config_redis.json) is as follows: ```json "pub_subs": { diff --git a/docs/en/component_specs/pubsub/redis.md b/docs/en/component_specs/pubsub/redis.md index 03f4fea1a3..89dd5f88fb 100644 --- a/docs/en/component_specs/pubsub/redis.md +++ b/docs/en/component_specs/pubsub/redis.md @@ -1,7 +1,7 @@ # Redis ## metadata fields -Example: configs/config_apollo_health_mq.json +Example: configs/config_redis.json | Field | Required | Description | | --- | --- | --- | diff --git a/docs/en/start/pubsub/start.md b/docs/en/start/pubsub/start.md index afe8503213..711cfb4710 100644 --- a/docs/en/start/pubsub/start.md +++ b/docs/en/start/pubsub/start.md @@ -82,7 +82,7 @@ go build After completion, the layotto file will be generated in the directory, run it: ```bash -./layotto start -c ../../configs/config_apollo_health_mq.json +./layotto start -c ../../configs/config_redis.json ``` ### Step 4. Run the Publisher program and call Layotto to publish events diff --git a/docs/zh/component_specs/pubsub/common.md b/docs/zh/component_specs/pubsub/common.md index af5df8b2a6..18f6bee51a 100644 --- a/docs/zh/component_specs/pubsub/common.md +++ b/docs/zh/component_specs/pubsub/common.md @@ -13,7 +13,7 @@ json配置文件有如下结构: } ``` -您可以在metadata里配置组件关心的key/value配置。例如[redis组件的配置](https://github.com/mosn/layotto/blob/main/configs/config_apollo_health_mq.json) 如下: +您可以在metadata里配置组件关心的key/value配置。例如[redis组件的配置](https://github.com/mosn/layotto/blob/main/configs/config_redis.json) 如下: ```json "pub_subs": { diff --git a/docs/zh/component_specs/pubsub/redis.md b/docs/zh/component_specs/pubsub/redis.md index a8f56ee1d6..5d33ce0d5d 100644 --- a/docs/zh/component_specs/pubsub/redis.md +++ b/docs/zh/component_specs/pubsub/redis.md @@ -1,7 +1,7 @@ # Redis ## 配置项说明 -示例:configs/config_apollo_health_mq.json +示例:configs/config_redis.json | 字段 | 必填 | 说明 | | --- | --- | --- | diff --git a/docs/zh/start/pubsub/start.md b/docs/zh/start/pubsub/start.md index 0b3971664c..8efb706d7e 100644 --- a/docs/zh/start/pubsub/start.md +++ b/docs/zh/start/pubsub/start.md @@ -82,7 +82,7 @@ go build 完成后目录下会生成layotto文件,运行它: ```bash -./layotto start -c ../../configs/config_apollo_health_mq.json +./layotto start -c ../../configs/config_redis.json ``` ### 第四步:运行Publisher程序,调用Layotto发布事件