Page MenuHomePhabricator

Should / Can I Reuse an Almanac Device
OpenPublic

Asked by joshuaspence on Oct 14 2015, 11:29 PM.

Details

Currently I have a single Almanac device (named worker.phabricator.example.com) for our "worker" instances, which run our Phabricator daemons. Our worker instances currently register into the cluster with ./bin/almanac register --device=worker.phabricator.example.com --force --private-key=/path/to/private.key. Currently we run only a single worker instance, but I am unsure of how to properly scale this setup with Almanac... can I reuse the worker.phabricator.example.com device for multiple instances or do I need to create a separate Almanac device for each instance?

Answers

epriestley
Updated 2,061 Days Ago

I think Q175 answers this. Basically, this is perfectly fine. Until you care which device is connecting (which you might never care about), it's fine to register as many devices as you want with the same identity. This is just like giving them the same login/password or Conduit API token.

It's also fine for them to connect as worker.whatever.com but have separate physical device records worker001.whatever.com, etc., in Almanac., for outbound traffic.

This is how the Phacility cluster is configured today: we have repo001, repo002, repo003, etc., which are physical device records using for making outbound requests from a web host to a repo host to process things like git log. We also have daemons which is a virtual device that every repo host registers as. This is fine because (today) we don't care about distinguishing where these connections are coming from. If we eventually do, we'll just split that device up and use separate keys.

New Answer