Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace moving averages #5

Closed
fonsinchen opened this issue Mar 23, 2012 · 1 comment
Closed

Replace moving averages #5

fonsinchen opened this issue Mar 23, 2012 · 1 comment
Assignees

Comments

@fonsinchen
Copy link
Contributor

Instead of constantly visiting all stats to apply moving averages capacities can be constantly incremented without any correction until the link graph jobs are run. A member "start_date" of Edge would tell how long the stats collection is already running.

There should be an additional link graph job which would "compress" all link stats by dividing capacity by a certain factor and setting the start_date to something more recent. It could also handle splitting due to link timeouts.

@fonsinchen
Copy link
Contributor Author

Done. The compression has to be done inline though, as the links may change while the job is running. However, it's enough to do that about once in a game year.

@ghost ghost assigned ulfhermann Jul 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants