-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add setup script for elasticsearch, influxdb, redis #7
Conversation
# https://hub.docker.com/_/elasticsearch/ | ||
|
||
|
||
sysctl -w vm.max_map_count=262144 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this is needed? does it require sudo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, sudo is required.
elasticsearch checks max map count. without this, it won't boot up correctly.
https://www.elastic.co/guide/en/elasticsearch/reference/5.0/_maximum_map_count_check.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ideal situation is check max_map_count size before ask sudo to change it just cat /proc/sys/vm/max_map_count
will give you the value. though some transformation need to be made in shell. Anyway since *nix won't ask pwd for sudo in same shell, it's not a big deal.
|
||
docker run -p 9200:9200 -p 9300:9300 \ | ||
-e ES_JAVA_OPTS="-Xms${jvm_mem}m -Xmx${jvm_mem}m" \ | ||
elasticsearch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
specify the version, same as influx and redis, though using latest is not that bad, but I don't want fetch the newest one, a working (most commonly used) one is enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
oops, some small problems @czheo
Thx |
yes. we have to
depends on what operations you'd like to cover. |
@czheo I think sentry have some existing logic https://github.com/getsentry/sentry/tree/master/src/sentry/tsdb |
@at15 didn't find moving avg in their code |
Add setup script for elasticsearch, influxdb, redis.
works on Linux only.