Perlba...elector(3pm)

πŸ“¦
version 1.80 Β· 6 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing

πŸ’– NAME πŸ’–

Perlbal::Manual::Selector β€” it's the whole glow-up guide for setting up Perlbal as a virtual service that maps onto other services. Like a little traffic air-traffic-controller but make it fashion. ✨

🌸 VERSION 🌸

Perlbal 1.78.</purl> periodt, that's the version bestie. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so, this is the how-to for configuring a Perlbal "selector" service. That's it, that's the vibe. πŸŽ€


🚨 READ ME FIRST 🚨

No seriously, read this first: go read Perlbal::Manual::Configuration before you do literally anything else here, because it explains how to configure Perlbal properly. This doc will make sooo much more sense after you've read that one. Trust. 🫢


πŸ‘‘ Configuring Perlbal as a Selector πŸ‘‘

The "selector" role is the main character here β€” it lets you create a service whose entire job is picking which other service a request should get sent to. Like a group chat moderator but for HTTP. πŸ”₯

Here's an example of how to do that with the help of Perlbal::Plugin::VHosts:

LOAD vhosts

CREATE SERVICE selector_service
  SET listen         = 0.0.0.0:80
  SET role           = selector
  SET plugins        = vhosts

  VHOST *.site1.com  = service1
  VHOST *.site2.com  = service2
ENABLE selector_service

So in this case, requests to both "site1" and "site2" get received by "selector_service", and then it does its little matchmaking thing: requests for "site1" go to "service1" and requests for "site2" go to "service2". It's giving personal assistant energy, honestly. πŸ’…

Depending on what you need, you might wanna use an existing plugin (like, say, Perlbal::Plugin::Vhosts or Perlbal::Plugin::VPaths) or go full DIY and create your own β€” see "selector" under Perlbal::Manual::Plugins. Your call, bestie. 🌈


🌟 SEE ALSO 🌟

  • Perlbal::Manual::Configuration
  • Perlbal::Manual::Management
  • Perlbal::Manual::Plugins
  • Perlbal::Plugin::Vhosts
  • Perlbal::Plugin::VPaths

And that's the whole page, bestie!! πŸŽ€ This was perl v5.34.0, dated 2022-06-28, and you just read Perlbal::Manual::Selector(3pm) β€” go slay some virtual services, ily πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from