Giter Site home page Giter Site logo

Comments (10)

smilebasti avatar smilebasti commented on July 1, 2024 1

I released v2.3.1. It should fix the need of restarting npmGrafStats.

Just pull the latest image and recreate npmGrafStats. Please let me know if we can close this issue :)

@G3VV i haven't done anything about the spikes. Please also let me know if they persist.

from npmgrafstats.

smilebasti avatar smilebasti commented on July 1, 2024

A workaround has come with v2.2.0.
Restarting the container now doesn't duplicate the logs.

You can create a cron job to restart npmgrafstats to avoid that the collection stops.

from npmgrafstats.

smilebasti avatar smilebasti commented on July 1, 2024

If somebody has any idea with this issue or can help please let me know :)

from npmgrafstats.

G3VV avatar G3VV commented on July 1, 2024

Still no update on this? I'm having this issue now every 5 minutes.
Hit's slowly drop from their peak to "No Data", this was fixed with a cron.
What the cron does not fix is the spikes of hit's per minute due to each restart..
image

from npmgrafstats.

smilebasti avatar smilebasti commented on July 1, 2024

@G3VV Sorry still not. Every 5 minutes seems to be too quick for my liking. In my use it happens about every 7 days with about 50 domains. The vm has for testing 4 GB Ram.
Can you share something about your system? Maybe i can narrow it down a bit better? Ram usage and number of domains?

I will have a look at the spikes.

from npmgrafstats.

G3VV avatar G3VV commented on July 1, 2024

@G3VV Sorry still not. Every 5 minutes seems to be too quick for my liking. In my use it happens about every 7 days with about 50 domains. The vm has for testing 4 GB Ram. Can you share something about your system? Maybe i can narrow it down a bit better? Ram usage and number of domains?

I will have a look at the spikes.

My proxy server is 8GB with 4 cores, i have 210 proxy hosts.
About 5 minutes after restarting the npmgraf docker the "Hit's in the last 5 minutes" will drop to "No Data" along-side all other information ceasing to update? I've looked at logs on all services and nothing shows any errors?
image
image

from npmgrafstats.

bam91 avatar bam91 commented on July 1, 2024

You can create a cron job to restart npmgrafstats to avoid that the collection stops.

Is there a nice way to do so in Docker?

I have checked the code and thought about it.
My first Idea: The problem could be in https://github.com/smilebasti/npmGrafStats/blob/main/Getipinfo.py#L122 . The Syncronus write would maye stop the whole process if Influxdb is not responding.
Solution: Set some kind of timeout to this operation or make it async. Async would be easy to do (https://github.com/smilebasti/npmGrafStats/blob/main/Getipinfo.py#L95). Maybe you could try this and add it to the image.

from npmgrafstats.

smilebasti avatar smilebasti commented on July 1, 2024

@bam91 Thanks for the ideas. I will test them.

I am also currently testing if it's a problem with not closing the connection after the data is written to InfluxDB. Will update when something works.

from npmgrafstats.

smilebasti avatar smilebasti commented on July 1, 2024

Closing the connection to InfluxDB after the data was sent seemed to help.

Now I had it stop working when the logs rotated. I will try tail -F instead of tail -f. That will be easier to test than the connection limit.

If it works I can push a preview/test image with the fix in a couple of days.

from npmgrafstats.

smilebasti avatar smilebasti commented on July 1, 2024

With no feedback and my experience that npmgrafstats now runs without interruptions i will close this issue.

Don't hesitate to comment/feedback on this issue or just open a new one.

from npmgrafstats.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.