Opened 7 years ago

Closed 5 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: Sensitive: no


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.


Change History (4)

comment:1 Changed 7 years ago by str4d

Keywords: performance added
Milestone: 0.9.16

comment:2 Changed 6 years ago by str4d

Status: newopen

comment:3 Changed 5 years ago by zzz

Profiles in c2f5f4715518c51cbe5e9a3f866310ec019afb35 0.9.27-9
more to do

comment:4 Changed 5 years ago by zzz

Milestone: 0.9.28
Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.