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

Get some of your cpu back when being hammered (Discussion) #5

Open
gateway opened this issue Nov 13, 2017 · 5 comments
Open

Get some of your cpu back when being hammered (Discussion) #5

gateway opened this issue Nov 13, 2017 · 5 comments

Comments

@gateway
Copy link

gateway commented Nov 13, 2017

Hey guys, I wanted to say that we got hammered yesterday and had 8 cores pegged on a few servers. This was due to attacks and a lot of miners.

I was able to bring back some cpu by removing the graph stats container and the related javascript..

this is more of a discussion on server load help.

@martin-key
Copy link

martin-key commented Nov 13, 2017 via email

@gateway
Copy link
Author

gateway commented Nov 14, 2017

Are the stats being pulled every tick? Could we just do it every x interval to update the chart.. and in between cache the chart data so its not always pulling? .. I think if switched to another graph package it might be wort doing this.. have you looked at highcharts?

@martin-key
Copy link

martin-key commented Nov 14, 2017 via email

@gateway
Copy link
Author

gateway commented Nov 14, 2017

That brings up a bigger topic which I think we should open a discussion thread here on how to deal with attacks. I felt the same and their are a few things people should have in place to help. (fail2ban), their is a znomp filter for this. proper ip tables, cloudflare. On the ports for the miners filter html data POST/Get request.. all this crap ties stuff up in the event loop.

Here is some data from newrelic from one of my servers.. a lot of time spent hammering live stats.. I think that should be cached more and not so live.. thoughts? Put in a variable to only get data every x seconds?

image

oh I would be up for funding for any help.. I think the BTG peeps using should kick in a bit to help move this project forward.. but most importantly optimizations..

@martin-key
Copy link

martin-key commented Nov 18, 2017 via email

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