From 1fdfdc4c62c0d1776cdfe8951a3ef06308b0d2b2 Mon Sep 17 00:00:00 2001 From: gabriel-tessier Date: Mon, 3 May 2021 23:57:15 +0900 Subject: [PATCH] docs(all): update to main replica (#477) --- docs/getting-started/examples.md | 30 +++++++++++++++--------------- docs/guides/cluster.md | 10 +++++----- docs/guides/edge.md | 14 +++++++------- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/docs/getting-started/examples.md b/docs/getting-started/examples.md index d32a3e6..b334cf2 100644 --- a/docs/getting-started/examples.md +++ b/docs/getting-started/examples.md @@ -42,13 +42,13 @@ with Diagram("Clustered Web Services", show=False): ECS("web3")] with Cluster("DB Cluster"): - db_master = RDS("userdb") - db_master - [RDS("userdb ro")] + db_main = RDS("userdb") + db_main - [RDS("userdb ro")] memcached = ElastiCache("memcached") dns >> lb >> svc_group - svc_group >> db_master + svc_group >> db_main svc_group >> memcached ``` @@ -196,14 +196,14 @@ with Diagram("Advanced Web Service with On-Premise", show=False): Server("grpc3")] with Cluster("Sessions HA"): - master = Redis("session") - master - Redis("replica") << metrics - grpcsvc >> master + main = Redis("session") + main - Redis("replica") << metrics + grpcsvc >> main with Cluster("Database HA"): - master = PostgreSQL("users") - master - PostgreSQL("slave") << metrics - grpcsvc >> master + main = PostgreSQL("users") + main - PostgreSQL("replica") << metrics + grpcsvc >> main aggregator = Fluentd("logging") aggregator >> Kafka("stream") >> Spark("analytics") @@ -239,14 +239,14 @@ with Diagram(name="Advanced Web Service with On-Premise (colored)", show=False): Server("grpc3")] with Cluster("Sessions HA"): - master = Redis("session") - master - Edge(color="brown", style="dashed") - Redis("replica") << Edge(label="collect") << metrics - grpcsvc >> Edge(color="brown") >> master + main = Redis("session") + main - Edge(color="brown", style="dashed") - Redis("replica") << Edge(label="collect") << metrics + grpcsvc >> Edge(color="brown") >> main with Cluster("Database HA"): - master = PostgreSQL("users") - master - Edge(color="brown", style="dotted") - PostgreSQL("slave") << Edge(label="collect") << metrics - grpcsvc >> Edge(color="black") >> master + main = PostgreSQL("users") + main - Edge(color="brown", style="dotted") - PostgreSQL("replica") << Edge(label="collect") << metrics + grpcsvc >> Edge(color="black") >> main aggregator = Fluentd("logging") aggregator >> Edge(label="parse") >> Kafka("stream") >> Edge(color="black", style="bold") >> Spark("analytics") diff --git a/docs/guides/cluster.md b/docs/guides/cluster.md index 6cbf820..5b8d42a 100644 --- a/docs/guides/cluster.md +++ b/docs/guides/cluster.md @@ -22,11 +22,11 @@ with Diagram("Simple Web Service with DB Cluster", show=False): web = ECS("service") with Cluster("DB Cluster"): - db_master = RDS("master") - db_master - [RDS("slave1"), - RDS("slave2")] + db_main = RDS("main") + db_main - [RDS("replica1"), + RDS("replica2")] - dns >> web >> db_master + dns >> web >> db_main ``` ![simple web service with db cluster diagram](/img/simple_web_service_with_db_cluster_diagram.png) @@ -68,4 +68,4 @@ with Diagram("Event Processing", show=False): ![event processing diagram](/img/event_processing_diagram.png) -> There is no depth limit of nesting. Feel free to create nested clusters as deep as you want. \ No newline at end of file +> There is no depth limit of nesting. Feel free to create nested clusters as deep as you want. diff --git a/docs/guides/edge.md b/docs/guides/edge.md index ee4b4da..0c5233f 100644 --- a/docs/guides/edge.md +++ b/docs/guides/edge.md @@ -35,22 +35,22 @@ with Diagram(name="Advanced Web Service with On-Premise (colored)", show=False): Server("grpc3")] with Cluster("Sessions HA"): - master = Redis("session") - master \ + main = Redis("session") + main \ - Edge(color="brown", style="dashed") \ - Redis("replica") \ << Edge(label="collect") \ << metrics - grpcsvc >> Edge(color="brown") >> master + grpcsvc >> Edge(color="brown") >> main with Cluster("Database HA"): - master = PostgreSQL("users") - master \ + main = PostgreSQL("users") + main \ - Edge(color="brown", style="dotted") \ - - PostgreSQL("slave") \ + - PostgreSQL("replica") \ << Edge(label="collect") \ << metrics - grpcsvc >> Edge(color="black") >> master + grpcsvc >> Edge(color="black") >> main aggregator = Fluentd("logging") aggregator \