dappnode / DNP_DAPPMANAGER

Dappnode package responsible for providing the Dappnode Package Manager
GNU General Public License v3.0
30 stars 40 forks source link

Implement ethical metrics migration #2002

Open pablomendezroyo opened 2 months ago

pablomendezroyo commented 2 months ago

Implement ethical metrics migration: ethical metrics will switch from using package ethical metrics to use new core package TOR:

The migration will consist of the following:

  1. Install new core
  2. New dappmanager starts
  3. Dappmanager realizes that ethical metrics legacy is running
  4. Dappmanager fetches tor instance from legacy ethical metrics using /instance endpoint
  5. Send unregister with dontSendUnregisterNotification https://github.com/dappnode/monitor-proxy/blob/a26edf0b77ba42ea5f54816c1822e97470fd15ad/src/apis/server/register/types.ts#L7. This will be using the socks from tor ethical metrics pkg
  6. Installs new tor core package
  7. Sends "register" request to proxy with dontSendWelcomeNotification https://github.com/dappnode/monitor-proxy/blob/a26edf0b77ba42ea5f54816c1822e97470fd15ad/src/apis/server/register/types.ts#L15. This will be using the socks from tor core package
  8. Removes legacy ethical metrics

This will entail data historic lost