-
Notifications
You must be signed in to change notification settings - Fork 3
feat: add high availability #163
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
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
c05c78b
feat: add high availability
gsanchietti b9e14e0
feat(ha): add chart
gsanchietti 7e96003
fix (ha): add DHCP DNS server option
gsanchietti f8e2055
fix(ha): improve alias configuration
gsanchietti de9ba4a
fix(ha): add alerting and upgrade
gsanchietti 8330af2
Fix some typos, clarify some sentence
filippocarletti 9df37ab
fix(ha): add lan_interface and wan_interface params
gsanchietti a4eb9c9
fix(ha): add hotspot
gsanchietti c0518a9
Update high_availability.rst
gsanchietti 2b2d022
Update high_availability.rst
gsanchietti 3860edf
fix: new network config
gsanchietti 18bc75c
fix: typos
filippocarletti 22735d4
fix: improve remove-interface description
gsanchietti d20814f
fix: use status for troubleshooting
gsanchietti 09d8f92
Update high_availability.rst
gsanchietti db2413b
Update high_availability.rst
gsanchietti 2e10f75
fix: add troubleshooting
gsanchietti 0ef18f7
fix: init-primary-node syntax
filippocarletti 913a4dc
fix: new status output
gsanchietti 658e5ab
fix: add beta tag
gsanchietti e50d71e
Update high_availability.rst
cotosso File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -4,6 +4,8 @@ build: | |
| os: ubuntu-22.04 | ||
| tools: | ||
| python: "3.11" | ||
| apt_packages: | ||
| - graphviz | ||
|
|
||
| python: | ||
| install: | ||
|
|
||
This file contains hidden or 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,84 @@ | ||
| digraph HA_Connectivity { | ||
| rankdir=TB; | ||
| bgcolor="#f8fafc"; // Tailwind slate-50 | ||
| fontname="Inter"; | ||
| fontsize=12; | ||
|
|
||
| node [ | ||
| shape=box, | ||
| style="filled,rounded", | ||
| fontname="Inter", | ||
| fontsize=12, | ||
| color="#e5e7eb", // Tailwind gray-200 | ||
| fillcolor="#f1f5f9", // Tailwind slate-100 | ||
| penwidth=2 | ||
| ]; | ||
|
|
||
| edge [ | ||
| fontname="Inter", | ||
| fontsize=11, | ||
| color="#94a3b8", // Tailwind slate-400 | ||
| arrowsize=0.8, | ||
| penwidth=2 | ||
| ]; | ||
|
|
||
| // 1) Hosts in LAN (top) | ||
| { rank=source; LANHost } | ||
|
|
||
| // 2) Virtual IP LAN | ||
| { rank=1; VirtualIP_LAN } | ||
|
|
||
| // 3) HA Nodes | ||
| subgraph cluster_ha_nodes { | ||
| label = "HA Nodes"; | ||
| style = "filled,rounded"; | ||
| color = "#e0e7ff"; // Tailwind indigo-100 | ||
| fillcolor = "#f1f5f9"; // Tailwind slate-100 | ||
| fontcolor = "#6366f1"; // Tailwind indigo-500 | ||
| fontsize=13; | ||
|
|
||
| subgraph cluster_primary { | ||
| label = "Primary Node"; | ||
| color = "#a5b4fc"; // Tailwind indigo-300 | ||
| fillcolor = "#dbeafe"; // Tailwind blue-100 | ||
| style = "filled,rounded"; | ||
| fontcolor = "#2563eb"; // Tailwind blue-600 | ||
| PrimaryLAN [label="LAN\n192.168.100.238", shape=ellipse, color="#bbf7d0", fillcolor="#f0fdf4", fontcolor="#166534"]; // Tailwind green | ||
| PrimaryWAN [label="WAN\n169.254.0.1", shape=ellipse, color="#fca5a5", fillcolor="#fef2f2", fontcolor="#b91c1c"]; // Tailwind red | ||
| } | ||
|
|
||
| subgraph cluster_backup { | ||
| label = "Backup Node"; | ||
| color = "#a5b4fc"; | ||
| fillcolor = "#dbeafe"; | ||
| style = "filled,rounded"; | ||
| fontcolor = "#2563eb"; | ||
| BackupLAN [label="LAN\n192.168.100.239", shape=ellipse, color="#bbf7d0", fillcolor="#f0fdf4", fontcolor="#166534"]; | ||
| BackupWAN [label="WAN\n169.254.0.2", shape=ellipse, color="#fca5a5", fillcolor="#fef2f2", fontcolor="#b91c1c"]; | ||
| } | ||
|
|
||
| { rank=2; PrimaryLAN; BackupLAN; PrimaryWAN; BackupWAN } | ||
| } | ||
|
|
||
| // 4) Virtual IP WAN | ||
| { rank=3; VirtualIP_WAN } | ||
|
|
||
| // 5) Internet (bottom) | ||
| { rank=sink; Internet } | ||
|
|
||
| // EXTRA NODE DEFINITIONS | ||
| VirtualIP_LAN [label="LAN GW- Virtual IP\n192.168.100.240", shape=ellipse, color="#fde68a", fillcolor="#fefce8", fontcolor="#b45309"]; // Tailwind yellow | ||
| VirtualIP_WAN [label="Virtual IP WAN\n1.2.3.4", shape=ellipse, color="#fde68a", fillcolor="#fefce8", fontcolor="#b45309"]; | ||
| LANHost [label="LAN Host", color="#bbf7d0", fillcolor="#f0fdf4", fontcolor="#166534"]; | ||
| Internet [label="Internet", shape=ellipse, color="#fdba74", fillcolor="#fff7ed", fontcolor="#c2410c"]; // Tailwind orange | ||
|
|
||
| // EDGES | ||
| LANHost -> VirtualIP_LAN [label="Traffic", color="#38bdf8", fontcolor="#0ea5e9"]; // Tailwind sky | ||
| VirtualIP_LAN -> PrimaryLAN [label="Active", color="#22d3ee", fontcolor="#0891b2"]; // Tailwind cyan | ||
| VirtualIP_LAN -> BackupLAN [label="Failover", style=dashed, color="#a3a3a3", fontcolor="#525252"]; // Tailwind neutral | ||
| PrimaryWAN -> VirtualIP_WAN [label="Active", color="#22d3ee", fontcolor="#0891b2"]; | ||
| BackupWAN -> VirtualIP_WAN [label="Failover", style=dashed, color="#a3a3a3", fontcolor="#525252"]; | ||
| VirtualIP_WAN -> Internet [label="Traffic", color="#f59e42", fontcolor="#ea580c"]; // Tailwind orange | ||
| PrimaryLAN -> BackupLAN [label="HA sync", color="#818cf8", fontcolor="#6366f1"]; // Tailwind indigo | ||
| PrimaryWAN -> BackupWAN [label="HA sync", color="#818cf8", fontcolor="#6366f1"]; | ||
| } |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.