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

Is this library ready to use in production like environment ? #50

Open
mayurjurani opened this issue Jun 22, 2018 · 6 comments
Open

Is this library ready to use in production like environment ? #50

mayurjurani opened this issue Jun 22, 2018 · 6 comments

Comments

@mayurjurani
Copy link

Hi @urielha / @jptoto

I was really wondering as there is no documentation available for this project that, is this library ready to use in production ?

@urielha
Copy link
Owner

urielha commented Jun 24, 2018

Hi,
Sure - the library is already in use in several projects for about 3 years.
All of the known issues have already been solved and we trying to do our best to give answers if any new issue is found.

I wonder, what kind of documentation were you looking for?
At the main project's README you have examples of configurations and how to use which seems to be enough for a small scale project like this.

@jptoto
Copy link
Contributor

jptoto commented Jun 25, 2018

I can't speak for this fork but I would not use my lib for production as it's still based on blocking log4net calls internally. If Elasticsearch becomes unavailable you will run into performance issues.

@eran-gil
Copy link
Collaborator

This has been an issue with log4stash as well, but it was fixed more than a year ago.
log4stash supports async logging, which means it doesn't wait for a response from ElasticSearch, and therefore is not affected from unavailability of your ElasticSearch cluster.
Log4stash also added support for multi-server configuration, which reduces the load on your cluster's nodes even more.
Hope this helps @mayurjurani .

@mayurjurani
Copy link
Author

Thank you so much for your inputs. @urielha @jptoto @erangil2 This is extremely helpful.

@mayurjurani
Copy link
Author

mayurjurani commented Jun 26, 2018

@urielha / @erangil2 ,

One information I am looking is, what will happen to those async messages (threads) if ElasticSearch cluster goes offline? Will those messages/threads get killed or they will be persisted in memory until ElasticSearch cluster becomes available ?
Our application produces lots of useful logs that we need to push to our ELK cluster.

Did you guys performed these tests ? if so, could you please share the test results ?
Also, can you please recommend what sort of testing I should do in-order to test such behavior ?

@mayurjurani mayurjurani reopened this Jun 26, 2018
@eran-gil
Copy link
Collaborator

If the cluster is down, there is a timeout configuration for the appender, and if the timeout passes, the thread is killed and the message is lost.
In my opinion an application should be resistent to log loss unlike data which should be persisted until is written.

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

4 participants