my net house

WAHEGURU….!

hacker’s guide to Traefik Edge Router

 

Service Discovery:

  • Auto Detection of New instances of Service.
  • By Default Load balancing is using Round-Robin, Weighted Round Robin, Custom Options are available based on Creativity.
  • Available insights in UI (Routes/Services/Middlewares).
  • Just like an edge router, we expose a port on the machine where it’s running, and all the inbound traffic goes through it.
  • *Priority: One can assign priority to services, and all the load will be distributed to them based on priority. This isn’t mentioned in load-balancing strategies though.
  • Provides Request Mirroring
  • Only Round Robin Load Balancing is Supported on *Servers*
  • Weighted Round Robin on *Services*

Default Dash-Board

image2

image1image2


InBuilt Authentication,Http Connection handling(timeout and etc) For EntryPoints and MiddleWares.

More UI Features:

  • Entrypoints hits (success/failure etc..)
  • HTTP Endpoints(Routers, Services, Middlewares) hits
  • TCP(Routers, Services) hits

Configuration For EntryPoints and Routers

  • Dynamic Configuration on the level of Strat-up and Runtime: (Hot Reloaded)

            https://docs.traefik.io/providers/overview/

Consul Example:

[providers.consul]

  endpoints = [“127.0.0.1:8500”]

  rootKey = “traefik” 

ETCD example:

[providers.etcd]

  endpoints = [“127.0.0.1:2379”]

  rootKey = “traefik” 

Full Path Details for Keys and Values

https://docs.traefik.io/routing/providers/kv/ 

Routers:

Entry Points talks to Routes to Call out Service Functions/Routes.

*Full Regex Support with && || conditions

* Priority Can be assigned to Each Route.

[http.routers]

  [http.routers.Router-1]

    rule = “HostRegexp(`.*\.traefik\.com`)”

    # …

  [http.routers.Router-2]

    rule = “Host(`foobar.traefik.com`)”

Source: https://docs.traefik.io/routing/routers/

Available Configuration Options:

https://docs.traefik.io/routing/providers/kv/

Health Checks:

It keeps doing health checkups of services, and are considered alive as long as they reply back with 2xx, 3xx HTTP codes

Mirroring:

  • Able to mirror requests to other services.
  • Whole request is buffered in memory until it is mirrored.

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: