Git Product home page Git Product logo

llama-sd's People

Contributors

scline avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

f0cus3d

llama-sd's Issues

Summary Interval changes do not take place during normal HUP eval

We kill HUP the collector when a configuration change is seen. It appears LLAMA Collector process does not evaluate the configuration value for Interval. As a temporary fix we should perform a full kill -9.

This can lower bandwidth usage greatly depending on the environment and data collection speeds required.

Scraper: AutoRestart

Auto-restart the scraper container in the event number targets don't equal the number of running scraper processes (i.e. one crashed). Make sure API is available before the restart is done.

InfluxDB 2.0

This does not appear to work with InfluxDB 2.0 so 1.8 needs to be utilized as a backend.

Unhandled config request

2021-10-23 16:37:50,808 DEBUG waitress-1: Config request from 'xx.xx.xx.xx:8100'
2021-10-23 16:37:50,809 ERROR waitress-1: Exception on /api/v1/config/scline [GET]
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.9/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/app/./app.py", line 207, in api_config
    database_tmp[group][remote_id]["tags"]["src_name"] = database_tmp[group][requesting_probe_id]["tags"]["probe_name"]
KeyError: 'xx.xx.xx.xx:8100'

Change local target IP to 127.0.0.1

So users don't need to mess with NAT Pinholes, have the llama-server automatically replace the requesting node's destination IP to 127.0.0.1

Thread locking dictionary is not functioning

When writing to the the dictionary variable the secondary cleanup thread errors if updated at the same time.

Exception in thread CleanThread:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/threading.py", line 954, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.9/threading.py", line 892, in run
    self._target(*self._args, **self._kwargs)
  File "/app/./app.py", line 128, in clean_stale_probes
    for probe in database:
RuntimeError: dictionary changed size during iteration
  1. Catch error so when less busy other runs will work, or restart when thread is dead
  2. Lock dictionary from editing/main until cleanup is completed. If locked gracefully hold or reject connections.

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.