On Thu, 26 Dec 2019 at 17:39, Marcus MERIGHI <[email protected]> wrote:

> Hello Thomas,
>
> [email protected] (Thomas Huber), 2019.12.26 (Thu) 16:42 (CET):
> > I just tried to get a little deeper into load-balancing and try
> > to use relayd(8) in a dynamic (translate to microservices) environment
> > where I´l like to add and remove hosts on the fly.
> > After some reading I thought I should use tables for this purpose.
> >
> > relayctl(8) only allows to enable or disable complete tables but not
> > to alter a table.
>
> But relayctl(8) lets you disable hosts of a table?
>
> $ relayctl show hosts
> $ relayctl host disable 3
>

Thanks, Marcus.


>
> You cannot add/remove/change, though.
>
> hm, okay
Basically it should be possible with hashicorps consule-template:
https://github.com/hashicorp/consul-template
but that´s not realy an elegnat way.


> Marcus
>
> > So I checked out
> >
> > 'pfctl -t <table> -T add '
> >
> > which should do exactly what I want.
> >
> > But unfortunatelly the tables (to relay or redirect) are not
> > present in 'pfctl -s Table'
> >
> > I just hava a small setup to play, no real hosts or serverices attached
> > but before growing bigger I wanted to ask here if this should be
> > possible how I try it or another idea how to alter realyd(8) tables
> > without updating relay.conf(5) and reload.
> >
> > thanks
> > --mirac
>

Reply via email to