Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1 KB

local-config.md

File metadata and controls

33 lines (22 loc) · 1 KB

Local Dev Config

Use the following configuration to locally run and test the OTEL demo:

  • For additional help go here

Raise your host's ulimits:

Raise the upper limits for OpenSearch to be able handling high I/O :

sudo sysctl -w vm.max_map_count=512000

Map domain name to local dns

run the following script to map the docker-compose service names to your local dns

# The hostname you want to associate with the IP address

OPENSEARCH_HOST="opensearch"
OPENSEARCH_DASHBOARD="opensearch-dashboards"
OTEL_STORE="frontend"
OTEL_LOADER="loadgenerator"
PROMETHEUS="prometheus"

# Add the entry to the /etc/hosts file

echo "$IP    $OPENSEARCH_HOST" | sudo tee -a /etc/hosts
echo "$IP    $OPENSEARCH_DASHBOARD" | sudo tee -a /etc/hosts
echo "$IP    $OTEL_STORE" | sudo tee -a /etc/hosts
echo "$IP    $PROMETHEUS" | sudo tee -a /etc/hosts
echo "$IP    $OTEL_LOADER" | sudo tee -a /etc/hosts