Ben Busby 8ee4f308a4
Prevent same instance from being selected twice in a row
Introduces a new db key "<service>-previous" to track which instance was
last selected for a particular service. This allows for filtering the
list of available instances to exclude the instance that was last
picked, to ensure a (slightly) more even distribution of traffic.
There's still the possiblity of the following scenario, however:

:service instances > 2

/:service request #1 -> instance #1
/:service request #2 -> instance #2
/:service request #3 -> instance #1
/:service request #4 -> instance #2

where there are many ignored instances for a particular service. One
possible solution would be to implement the "<service>-previous" value
to be a list, rather than a single value, and push to that list until
only one element is left in the original "instance" array after
filtering, and then delete the "<service>-previous" key.
2021-11-10 12:19:37 -07:00
2021-11-08 17:30:45 -07:00
2021-10-21 15:50:04 -06:00
2021-11-07 12:29:06 -07:00
2021-11-08 17:32:55 -07:00

Farside


Elixir CI

A redirecting service for FOSS alternative frontends

Development

  • Install redis
  • Install elixir
  • Start redis: redis-server /usr/local/etc/redis.conf
  • Install dependencies: mix deps.get
  • Initialize redis contents: mix run update.exs
  • Run Farside: mix run --no-halt
    • Uses localhost:4001
Description
A smart redirecting gateway for various frontend services
Readme 1.7 MiB
Languages
Go 82.5%
Shell 10.4%
HTML 7.1%