Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(all): update from main to primary #573

Merged
merged 1 commit into from
Aug 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions docs/getting-started/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ with Diagram("Clustered Web Services", show=False):
ECS("web3")]

with Cluster("DB Cluster"):
db_main = RDS("userdb")
db_main - [RDS("userdb ro")]
db_primary = RDS("userdb")
db_primary - [RDS("userdb ro")]

memcached = ElastiCache("memcached")

dns >> lb >> svc_group
svc_group >> db_main
svc_group >> db_primary
svc_group >> memcached
```

Expand Down Expand Up @@ -196,14 +196,14 @@ with Diagram("Advanced Web Service with On-Premise", show=False):
Server("grpc3")]

with Cluster("Sessions HA"):
main = Redis("session")
main - Redis("replica") << metrics
grpcsvc >> main
primary = Redis("session")
primary - Redis("replica") << metrics
grpcsvc >> primary

with Cluster("Database HA"):
main = PostgreSQL("users")
main - PostgreSQL("replica") << metrics
grpcsvc >> main
primary = PostgreSQL("users")
primary - PostgreSQL("replica") << metrics
grpcsvc >> primary

aggregator = Fluentd("logging")
aggregator >> Kafka("stream") >> Spark("analytics")
Expand Down Expand Up @@ -239,14 +239,14 @@ with Diagram(name="Advanced Web Service with On-Premise (colored)", show=False):
Server("grpc3")]

with Cluster("Sessions HA"):
main = Redis("session")
main - Edge(color="brown", style="dashed") - Redis("replica") << Edge(label="collect") << metrics
grpcsvc >> Edge(color="brown") >> main
primary = Redis("session")
primary - Edge(color="brown", style="dashed") - Redis("replica") << Edge(label="collect") << metrics
grpcsvc >> Edge(color="brown") >> primary

with Cluster("Database HA"):
main = PostgreSQL("users")
main - Edge(color="brown", style="dotted") - PostgreSQL("replica") << Edge(label="collect") << metrics
grpcsvc >> Edge(color="black") >> main
primary = PostgreSQL("users")
primary - Edge(color="brown", style="dotted") - PostgreSQL("replica") << Edge(label="collect") << metrics
grpcsvc >> Edge(color="black") >> primary

aggregator = Fluentd("logging")
aggregator >> Edge(label="parse") >> Kafka("stream") >> Edge(color="black", style="bold") >> Spark("analytics")
Expand Down
12 changes: 6 additions & 6 deletions docs/guides/edge.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,22 @@ with Diagram(name="Advanced Web Service with On-Premise (colored)", show=False):
Server("grpc3")]

with Cluster("Sessions HA"):
main = Redis("session")
main \
primary = Redis("session")
primary \
- Edge(color="brown", style="dashed") \
- Redis("replica") \
<< Edge(label="collect") \
<< metrics
grpcsvc >> Edge(color="brown") >> main
grpcsvc >> Edge(color="brown") >> primary

with Cluster("Database HA"):
main = PostgreSQL("users")
main \
primary = PostgreSQL("users")
primary \
- Edge(color="brown", style="dotted") \
- PostgreSQL("replica") \
<< Edge(label="collect") \
<< metrics
grpcsvc >> Edge(color="black") >> main
grpcsvc >> Edge(color="black") >> primary

aggregator = Fluentd("logging")
aggregator \
Expand Down