Comments (10)
Well, it does memory allocation, lookup and formatting every single time. I suppose using nsdc or similar for caching may make it faster, and with some tricks, we could make it possible to only allocate once (but then we'd have a lock, so that likely wouldn't buy us much).
I'll try to do some profiling to see which part is the slowest. By the way, are you using LDAP or something similarly expensive? And which getent
function is slow? passwd & group?
from syslog-ng-incubator.
I do use nscd
and I was using getent protocols
.
I'll test if others are faster tomorrow.
geoip
is much faster
from syslog-ng-incubator.
GeoIP loads the database once on startup (or reload), and only uses memory after that, if I remember correctly. I suppose we could do the same with getent, but that's risky (if you have an LDAP with 30k+ users, startup would be incredibly slow...).
from syslog-ng-incubator.
Hm... or, we could cache results ourselves. I'll try to do some profiling and see if caching helps.
from syslog-ng-incubator.
Awesome, thanks!
from syslog-ng-incubator.
I think this question is answered, so I close this Issue
from syslog-ng-incubator.
@algernon proposed to do some tests, but this has not been addressed yet
from syslog-ng-incubator.
Sorry, I issue reopened
from syslog-ng-incubator.
Not sure when (or in all honesty, if) I will have time to do any tests.
from syslog-ng-incubator.
genet module is removed from the incubator and merged into syslog-ng master.
If you still have concerns with the speed of the getent module, please open a new ticket in the syslog-ng project.
from syslog-ng-incubator.
Related Issues (20)
- java destination on FreeBSD HOT 6
- systemd HOT 3
- java destination on RHEL6 (CentOS6) HOT 1
- multiple java destinations java.lang.UnsatisfiedLinkError HOT 2
- Question: java destination LD_LIBRARY_PATH HOT 2
- typo in the example config of python destination HOT 1
- grok compile warning
- Error parsing kafka, Error compiling template (Unknown template function "format-json") HOT 1
- kafka-plugin segfaults
- Do the SCL changes in 3.7.2 break the kafka C support from the incubator? HOT 9
- Rename kafka destination to kafka-c HOT 1
- some problems when compiling syslog-ng-incubator HOT 1
- Some problems when running zmq destination with syslog-ng 3.7.2 HOT 8
- compiling the date parser fails on FreeBSD HOT 4
- why I ./configure it always show the error" No package 'syslog-ng' found" HOT 7
- Add support for 3.8 HOT 7
- Grok pattern compilation error HOT 6
- java destination can't be disabled
- zmq compile warnings HOT 2
- there are traces of graphite in 0.4.0 sources
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from syslog-ng-incubator.