Opened 5 years ago

Closed 3 years ago

#1328 closed enhancement (fixed)

Save important state periodically

Reported by: zzz Owned by:
Priority: minor Milestone: 0.9.28
Component: router/general Version: 0.9.13
Keywords: performance Cc:
Parent Tickets:

Description

Some important state information is stored in-memory and only saved to disk at shutdown. Examples: Peer profiles, and snark DHT peers.

For routers with long uptimes, if the computer crashes or is shut down without cleanly stopping I2P, that state is lost. Re-integration after restart may be considerably more difficult without a recent saved state.

For example, I had a router with several days uptime and the PC crashed. It had several hundred known snark DHT peers and none were saved.

Saving this state to disk periodically, say every 24 hours (more often on Android?), would resolve the issue. Add jobs and/or timer tasks for the profile manager and snark to accomplish this. Look for other cases.

Subtickets

Change History (4)

comment:1 Changed 4 years ago by str4d

  • Keywords performance added
  • Milestone 0.9.16 deleted

comment:2 Changed 3 years ago by str4d

  • Status changed from new to open

comment:3 Changed 3 years ago by zzz

Profiles in c2f5f4715518c51cbe5e9a3f866310ec019afb35 0.9.27-9
more to do

comment:4 Changed 3 years ago by zzz

  • Milestone set to 0.9.28
  • Resolution set to fixed
  • Status changed from open to closed

snark DHT in d656772801692b4435474644c500aca998fe0691 0.9.27-9

Note: See TracTickets for help on using tickets.