Commit c190ae90 by Adam Committed by GitHub

Merge pull request #3944 from edx/add-splunk-to-neo4j

Add splunk to neo4j
parents 7326348e 93990a4b
- Role: neo4j
- Enabled splunk forwarding for neo4j logs.
- Increased maximum amount of open files to 40000, as suggested by neo4j.
- Updated the java build that neo4j uses to run.
- Role: edxapp
- Set the default value for EDXAPP_BULK_EMAIL_ROUTING_KEY_SMALL_JOBS to
'edx.lms.core.low'.
......
......@@ -13,3 +13,5 @@
- coursegraph
# - aws
- neo4j
- role: splunkforwarder
when: COMMON_ENABLE_SPLUNKFORWARDER
......@@ -21,12 +21,14 @@ NEO4J_SERVER_NAME: "localhost"
neo4j_gpg_key_url: https://debian.neo4j.org/neotechnology.gpg.key
neo4j_apt_repository: "deb http://debian.neo4j.org/repo stable/"
neo4j_version: "3.0.3"
neo4j_defaults_file: "/etc/default/neo4j"
neo4j_server_config_file: "/etc/neo4j/neo4j.conf"
neo4j_wrapper_config_file: "/etc/neo4j/neo4j-wrapper.conf"
neo4j_https_port: 7473 # default in package is 7473
neo4j_http_port: 7474 # default in package is 7474
neo4j_listen_address: "0.0.0.0"
neo4j_heap_max_size: "3000"
neo4j_log_dir: "/var/log/neo4j"
# Properties file settings
neo4j_https_settings_key: "dbms.connector.https.address"
......
......@@ -2,7 +2,7 @@
dependencies:
- common
- role: oraclejdk
oraclejdk_version: "8u60"
oraclejdk_base: "jdk1.8.0_60"
oraclejdk_build: "b27"
oraclejdk_version: "8u131"
oraclejdk_base: "jdk1.8.0_131"
oraclejdk_build: "b11"
oraclejdk_link: "/usr/lib/jvm/java-8-oracle"
......@@ -72,9 +72,48 @@
- install
- install:configuration
- name: set log dir for neo4j
lineinfile:
create: yes
dest: "{{ neo4j_server_config_file }}"
regexp: "dbms.directories.logs="
line: "dbms.directories.logs={{ neo4j_log_dir }}"
tags:
- install
- install:configuration
- name: Create neo4j logging dir
file:
path: "{{ neo4j_log_dir }}"
state: directory
owner: neo4j
mode: "0755"
tags:
- install
- install:base
- name: Create neo4j default file
file:
path: "{{ neo4j_defaults_file }}"
state: touch
owner: neo4j
mode: "0755"
tags:
- install
- install:base
- name: set max open files to 40000
lineinfile:
dest: "{{ neo4j_defaults_file }}"
regexp: "#NEO4J_ULIMIT_NOFILE=40000"
line: "NEO4J_ULIMIT_NOFILE=40000"
tags:
- install
- install:base
- name: restart neo4j
service:
name: neo4j
service:
name: neo4j
state: restarted
tags:
- manage
......
......@@ -76,6 +76,10 @@ SPLUNKFORWARDER_LOG_ITEMS:
recursive: true
index: '{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMENT }}'
sourcetype: 'rabbitmq'
- source: '/var/log/neo4j'
recursive: true
index: '{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMENT }}'
sourcetype: 'neo4j'
#
# OS packages
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment