mirror of https://github.com/OpenVidu/openvidu.git
deployment-openvidu-pro: Minor fix configuring different openvidu pro clusters with the same Elastic Stack
parent
ca915fa321
commit
087a2a0d06
|
@ -19,6 +19,7 @@ processors:
|
||||||
- add_fields:
|
- add_fields:
|
||||||
fields:
|
fields:
|
||||||
ip: ${MEDIA_NODE_IP}
|
ip: ${MEDIA_NODE_IP}
|
||||||
|
cluster-id: ${CLUSTER_ID}
|
||||||
|
|
||||||
output:
|
output:
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
|
|
|
@ -5,7 +5,7 @@ metricbeat.modules:
|
||||||
period: ${OPENVIDU_PRO_CLUSTER_LOAD_INTERVAL}s
|
period: ${OPENVIDU_PRO_CLUSTER_LOAD_INTERVAL}s
|
||||||
processes: ['.*']
|
processes: ['.*']
|
||||||
cpu.metrics: [normalized_percentages]
|
cpu.metrics: [normalized_percentages]
|
||||||
fields: {ip: "${MEDIA_NODE_IP}"}
|
fields: {ip: "${MEDIA_NODE_IP}", cluster-id: "${CLUSTER_ID}"}
|
||||||
pipeline:
|
pipeline:
|
||||||
queue.mem.events: 0
|
queue.mem.events: 0
|
||||||
setup.ilm.enabled: false
|
setup.ilm.enabled: false
|
|
@ -71,6 +71,12 @@ OPENVIDU_PRO_CLUSTER_MODE=manual
|
||||||
# Possibles values: aws, on_premise
|
# Possibles values: aws, on_premise
|
||||||
OPENVIDU_PRO_CLUSTER_ENVIRONMENT=on_premise
|
OPENVIDU_PRO_CLUSTER_ENVIRONMENT=on_premise
|
||||||
|
|
||||||
|
# Unique identifier of your cluster. Each OpenVidu Server Pro instance corresponds to one cluster.
|
||||||
|
# You can launch as many clusters as you want with your license key.
|
||||||
|
# Cluster ID will always be stored to disk so restarting OpenVidu Server Pro will keep the same previous cluster ID
|
||||||
|
# if this configuration parameter is not given a distinct value.
|
||||||
|
# OPENVIDU_PRO_CLUSTER_ID=
|
||||||
|
|
||||||
# The desired number of Media Nodes on startup. First the autodiscovery process is performed.
|
# The desired number of Media Nodes on startup. First the autodiscovery process is performed.
|
||||||
# If there are too many Media Nodes after that, they will be dropped until this number is reached.
|
# If there are too many Media Nodes after that, they will be dropped until this number is reached.
|
||||||
# If there are not enough, more will be launched.
|
# If there are not enough, more will be launched.
|
||||||
|
@ -85,7 +91,6 @@ OPENVIDU_PRO_CLUSTER_ENVIRONMENT=on_premise
|
||||||
# Type: number >= 0
|
# Type: number >= 0
|
||||||
# OPENVIDU_PRO_CLUSTER_LOAD_INTERVAL=
|
# OPENVIDU_PRO_CLUSTER_LOAD_INTERVAL=
|
||||||
|
|
||||||
|
|
||||||
# Whether to enable or disable autoscaling. With autoscaling the number of Media Nodes will
|
# Whether to enable or disable autoscaling. With autoscaling the number of Media Nodes will
|
||||||
# be automatically adjusted according to existing load
|
# be automatically adjusted according to existing load
|
||||||
# Values: true | false
|
# Values: true | false
|
||||||
|
|
|
@ -13,6 +13,9 @@ processors:
|
||||||
fields: ["message"]
|
fields: ["message"]
|
||||||
target: "json"
|
target: "json"
|
||||||
overwrite_keys: true
|
overwrite_keys: true
|
||||||
|
- add_fields:
|
||||||
|
fields:
|
||||||
|
cluster-id: ${OPENVIDU_PRO_CLUSTER_ID:undefined}
|
||||||
|
|
||||||
output:
|
output:
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
|
|
|
@ -116,6 +116,8 @@ services:
|
||||||
network_mode: host
|
network_mode: host
|
||||||
restart: always
|
restart: always
|
||||||
user: root
|
user: root
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
environment:
|
environment:
|
||||||
- OPENVIDU_PRO_ELASTICSEARCH_HOST=${OPENVIDU_PRO_ELASTICSEARCH_HOST:-http://127.0.0.1:9200}
|
- OPENVIDU_PRO_ELASTICSEARCH_HOST=${OPENVIDU_PRO_ELASTICSEARCH_HOST:-http://127.0.0.1:9200}
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Reference in New Issue