feat(onprem): Add Valkey in-memory node

Add a Valkey node class to diagrams.onprem.inmemory alongside the
  existing Redis class, including its icon resource. Update the node
  reference and example/guide docs to use Valkey, and regenerate all
  affected example diagram images.

  - Add Valkey class and valkey.png resource
  - Document Valkey in docs/nodes/onprem.md
  - Switch advanced web service examples from Redis to Valkey
  - Regenerate all example images in docs/getting-started/examples.md
    and the Edges guide diagrams

Signed-off-by: Roberto Luna-Rojas <roberto.luna.rojas@gmail.com>
pull/1230/head
Roberto Luna-Rojas 2 months ago
parent b595157bd0
commit 49549ca8bf

@ -24,4 +24,8 @@ class Redis(_Inmemory):
_icon = "redis.png"
class Valkey(_Inmemory):
_icon = "valkey.png"
# Aliases

@ -177,7 +177,7 @@ from diagrams import Cluster, Diagram
from diagrams.onprem.analytics import Spark
from diagrams.onprem.compute import Server
from diagrams.onprem.database import PostgreSQL
from diagrams.onprem.inmemory import Redis
from diagrams.onprem.inmemory import Valkey
from diagrams.onprem.aggregator import Fluentd
from diagrams.onprem.monitoring import Grafana, Prometheus
from diagrams.onprem.network import Nginx
@ -196,8 +196,8 @@ with Diagram("Advanced Web Service with On-Premises", show=False):
Server("grpc3")]
with Cluster("Sessions HA"):
primary = Redis("session")
primary - Redis("replica") << metrics
primary = Valkey("session")
primary - Valkey("replica") << metrics
grpcsvc >> primary
with Cluster("Database HA"):
@ -220,7 +220,7 @@ from diagrams import Cluster, Diagram, Edge
from diagrams.onprem.analytics import Spark
from diagrams.onprem.compute import Server
from diagrams.onprem.database import PostgreSQL
from diagrams.onprem.inmemory import Redis
from diagrams.onprem.inmemory import Valkey
from diagrams.onprem.aggregator import Fluentd
from diagrams.onprem.monitoring import Grafana, Prometheus
from diagrams.onprem.network import Nginx
@ -239,8 +239,8 @@ with Diagram(name="Advanced Web Service with On-Premises (colored)", show=False)
Server("grpc3")]
with Cluster("Sessions HA"):
primary = Redis("session")
primary - Edge(color="brown", style="dashed") - Redis("replica") << Edge(label="collect") << metrics
primary = Valkey("session")
primary - Edge(color="brown", style="dashed") - Valkey("replica") << Edge(label="collect") << metrics
grpcsvc >> Edge(color="brown") >> primary
with Cluster("Database HA"):

@ -16,7 +16,7 @@ from diagrams import Cluster, Diagram, Edge
from diagrams.onprem.analytics import Spark
from diagrams.onprem.compute import Server
from diagrams.onprem.database import PostgreSQL
from diagrams.onprem.inmemory import Redis
from diagrams.onprem.inmemory import Valkey
from diagrams.onprem.aggregator import Fluentd
from diagrams.onprem.monitoring import Grafana, Prometheus
from diagrams.onprem.network import Nginx
@ -35,10 +35,10 @@ with Diagram(name="Advanced Web Service with On-Premises (colored)", show=False)
Server("grpc3")]
with Cluster("Sessions HA"):
primary = Redis("session")
primary = Valkey("session")
primary \
- Edge(color="brown", style="dashed") \
- Redis("replica") \
- Valkey("replica") \
<< Edge(label="collect") \
<< metrics
grpcsvc >> Edge(color="brown") >> primary
@ -80,7 +80,7 @@ from diagrams import Cluster, Diagram, Node
from diagrams.onprem.analytics import Spark
from diagrams.onprem.compute import Server
from diagrams.onprem.database import PostgreSQL
from diagrams.onprem.inmemory import Redis
from diagrams.onprem.inmemory import Valkey
from diagrams.onprem.aggregator import Fluentd
from diagrams.onprem.monitoring import Grafana, Prometheus
from diagrams.onprem.network import Nginx
@ -109,8 +109,8 @@ with Diagram("\nAdvanced Web Service with On-Premise Less edges", show=False) as
blankHA >> db
with Cluster("Sessions HA"):
sess = Redis("session")
sess - Redis("replica") << metrics
sess = Valkey("session")
sess - Valkey("replica") << metrics
blankHA >> sess
ingress >> serv2 >> blankHA
@ -143,7 +143,7 @@ from diagrams import Cluster, Diagram, Edge, Node
from diagrams.onprem.analytics import Spark
from diagrams.onprem.compute import Server
from diagrams.onprem.database import PostgreSQL
from diagrams.onprem.inmemory import Redis
from diagrams.onprem.inmemory import Valkey
from diagrams.onprem.aggregator import Fluentd
from diagrams.onprem.monitoring import Grafana, Prometheus
from diagrams.onprem.network import Nginx
@ -176,8 +176,8 @@ with Diagram("\n\nAdvanced Web Service with On-Premise Merged edges", show=False
blank = Node("", shape="plaintext", height="0.0", width="0.0")
with Cluster("Sessions HA"):
sess = Redis("session")
sess - Redis("replica") << metrics
sess = Valkey("session")
sess - Valkey("replica") << metrics
with Cluster("Database HA"):
db = PostgreSQL("users")

@ -317,6 +317,9 @@ Node classes list of the onprem provider.
<img width="30" src="/img/resources/onprem/inmemory/redis.png" alt="Redis" style="float: left; padding-right: 5px;" >
**diagrams.onprem.inmemory.Redis**
<img width="30" src="/img/resources/onprem/inmemory/valkey.png" alt="Valkey" style="float: left; padding-right: 5px;" >
**diagrams.onprem.inmemory.Valkey**
## onprem.logging

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 156 KiB

After

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 KiB

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 KiB

After

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 KiB

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 KiB

After

Width:  |  Height:  |  Size: 160 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 KiB

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 KiB

After

Width:  |  Height:  |  Size: 112 KiB

Loading…
Cancel
Save