llajas / homelab

Modern self-hosting infrastructure, fully automated from empty disk to operating services with a single command.
https://homelab.lajas.tech
GNU General Public License v3.0
3 stars 0 forks source link

Lan cache #16

Closed llajas closed 7 months ago

llajas commented 7 months ago

Adds a caching server for popular domains and CDN's. Alleviates strain off local network for updates that are queried by multiple devices. Flow is below:

                                  +-----------+
                                  |           |
                                  |   Pi-hole |----------------+
                                  |           |                |
                                  +-----------+                |
                                         |                     |
        +--------------------------------+---------------------+--------+
        |                                |                              |
1.      |                         2.     |                       3.     |
        |                                |                              |
+-------v-------+              +---------v--------+         +----------v--------+
|               |              |                  |         |                   |
|    Unbound    |              |     UDM Pro      |         |    Lancache       |
| (Normal       |              |   (LAN Hosts,    |         |   Resolver (Game  |
|  Requests)    |              |  DHCP Server)    |         |   CDN Requests)   |
|               |              |                  |         |                   |
+---------------+              +------------------+         +-------------------+

Content is stored on a SSD cache pool and shared via NFS - Will perform benchmarks later to determine if NFS or SMB provides better throughput.

Tested locally using helm and verified.