Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Neilj/mau limits2#3529

Closed
neilisfragile wants to merge 10 commits into
developfrom
neilj/mau_limits2
Closed

Neilj/mau limits2#3529
neilisfragile wants to merge 10 commits into
developfrom
neilj/mau_limits2

Conversation

@neilisfragile
Copy link
Copy Markdown
Contributor

First stage of limiting based on monthly active users.

The intent at this point is simply to expose the data via prometheus - I have explicitly avoided adding the details to the homeserver.yaml - since the blocking functionality is to come later

@neilisfragile neilisfragile changed the base branch from master to develop July 13, 2018 10:22
reason not to is waiting on definition of mau
"""
def _count_users(txn):
yesterday = int(self._clock.time_msec()) - (1000 * 60 * 60 * 24 * 30)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is not yesterday but month_ago or similar. Please rename to avoid confusion

@neilisfragile
Copy link
Copy Markdown
Contributor Author

Closing, superseded by #3630

@neilisfragile neilisfragile deleted the neilj/mau_limits2 branch August 1, 2018 14:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants