Auto Prunning

Post your ideas and suggestions here
Post Reply
Axem Keigoku
Exiled
Posts: 1807
Joined: Sat Aug 28, 2004 12:25 am

Auto Prunning

Post by Axem Keigoku »

I have come to think of this :

Auto deletion of unused accounts after a CVar controlled period of time, default being 6 months.

That means that if there is no log/activity within a said account for 6 months or CVar setting, the account will be deleted from the data base.

That would be to prevent the stacking of useless accounts, and since there is a limit, it would be best that way.

¬ Axem
Image
User avatar
Soh Raun
Jedi Master
Posts: 2455
Joined: Tue Aug 23, 2005 5:15 am
Contact:

Post by Soh Raun »

Indeed this will be needed at some point.

Note though that the limit on the number of accounts (128 but this can be changed) only concerns the JKA server, not the database. At worse, the accounts.dat file can be deleted from the server and accounts will be re-downloaded as needed (i.e. when logging in). And of course we can delete accounts manually in the database (/rpdeleteaccount command, or Web Interface), so they will also be deleted from the JKA server.

To sum up:
- auto-pruning of the JKA server accounts cache will be needed and done soon (but probably not for the first mod release)
- auto-pruning of the database would probably be useful, but deleting accounts manually isn't really a problem
Image
Erue
Lost One
Posts: 199
Joined: Sun May 30, 2004 2:39 pm
Location: Coruscant
Contact:

Post by Erue »

You may not even want to bother implementing a feature like that into the mod itself. For instance, many jk2 servers have a perl script to auto trim banlists and so on. So, taking that example, you could just set up a perl script to auto clean the accounts that are out of date, not used or whatever.
Ctathos
Lost One
Posts: 1501
Joined: Mon Nov 22, 2004 1:56 pm
Location: Unknown
Contact:

Post by Ctathos »

Perhaps we could get a cvar to 'not prune' certain accounts if people go on vacation or a temporary leave?

Image

Post Reply