Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

keep track of active users #946

Closed
fisx opened this issue Aug 8, 2016 · 4 comments
Closed

keep track of active users #946

fisx opened this issue Aug 8, 2016 · 4 comments
Assignees

Comments

@fisx
Copy link
Collaborator

fisx commented Aug 8, 2016

Related: #915.

we want to have this:

type ActiveSessions = Set (ThentosSession, TimeStamp)
-- store ActiveSessions in AulaData

bump :: ThentosSession -> Action ()
gc :: Action ()
size :: Action Int

everything else happens under the hood in Persistent.Pure.

@fisx
Copy link
Collaborator Author

fisx commented Aug 8, 2016

i forgot: there has to be a constant somewhere that determines how old is stale (in TimeSpan).

@fisx
Copy link
Collaborator Author

fisx commented Aug 8, 2016

also, possibly even more relevant: we need maximum request time in the window of the last TimeSpan. does ekg help us with that?

@fisx
Copy link
Collaborator Author

fisx commented Aug 8, 2016

@fisx
Copy link
Collaborator Author

fisx commented Aug 9, 2016

#951 has the code to keep track of logged in users, but if nobody ever logs out, that does not say much about the number of active users. anyway, both figures are interesting. we'll close this for now.

@fisx fisx closed this as completed Aug 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants