How can I use the alarm-server container to connect to the PV signal from another IP device on the local area network?
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- docker-compose, kafka
- Domain
- networking
Research direction
Start with the Compose configuration in the issue, especially the alarmserver environment and the alarm-network setup. Check how the container's PV signal connection is configured and whether it can reach the other LAN device; compare that with the working local-host connection. Done means the alarm-server can obtain the remote PV signal, with the connection settings verified.
Written by the indexing model from the issue text.
Description
Below is the YML file I wrote myself. Are there any issues? Currently, the alarm-server container is unable to obtain the PV signal from another IP device on the LAN, while the local host's PV signal can be retrieved without any problem.
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.11.2
hostname: elasticsearch
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9200"]
interval: 30s
timeout: 10s
retries: 5
ports:
- "9200:9200"
environment:
discovery.type: single-node
bootstrap.memory_lock: "true"
xpack.security.enabled: "false"
ES_JAVA_OPTS: "-Xmx1G"
http.host: 0.0.0.0
volumes:
- ./elasticsearch/data:/usr/share/elasticsearch/data
networks:
- alarm-network
zookeeper:
image: confluentinc/cp-zookeeper:7.4.0
hostname: zookeeper
healthcheck:
test: nc -z localhost 2181 || exit -1
interval: 10s
timeout: 10s
retries: 3
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 4000
ZOOKEEPER_INIT_LIMIT: 20
ZOOKEEPER_SYNC_LIMIT: 10
KAFKA_HEAP_OPTS: "-Xmx512M"
volumes:
- ./zookeeper/data:/var/lib/zookeeper/data
- ./zookeeper/log:/var/lib/zookeeper/log
ports:
- 2181:2181
networks:
- alarm-network
kafka:
image: confluentinc/cp-kafka:7.4.0
hostname: kafka
depends_on:
zookeeper:
condition: service_healthy
ports:
- "9092:9092"
- "29092:29092"
environment:
KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka:19092,EXTERNAL://localhost:9092,DOCKER://localhost:29092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT,DOCKER:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_BROKER_ID: 1
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_ALLOW_EVERYONE_IF_NO_ACL_FOUND: "true"
KAFKA_HEAP_OPTS: "-Xmx1G"
KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 30000
KAFKA_ADVERTISED_HOST_NAME: kafka
healthcheck:
test: ["CMD", "kafka-topics", "--bootstrap-server", "localhost:19092", "--list"]
interval: 30s
timeout: 10s
retries: 5
start_period: 40s
volumes:
- ./kafka/data:/var/lib/kafka/data
- ./kafka/logs:/var/log/kafka
networks:
- alarm-network
alarmserver:
image: ghcr.io/controlsystemstudio/phoebus/service-alarm-server:master
restart: unless-stopped
depends_on:
kafka:
condition: service_healthy
elasticsearch:
condition: service_healthy
environment:
EPICS_PVA_ADDR_LIST: ${HOST_IP_ADDRESS}
EPICS_CA_ADDR_LIST="203.202.2.99:5078" # No Useful, Why?
EPICS_CA_AUTO_ADDR_LIST="NO"
ALARM_RESTORE_STATE: "true"
ALARM_ELASTICSEARCH_ENABLED: "true"
ALARM_ELASTICSEARCH_URL: "http://elasticsearch:9200"
ALARM_ELASTICSEARCH_INDEX: "alarms"
volumes:
- /home:/home
command: >
/bin/bash -c "
java -jar /alarmserver/service-alarm-server-*.jar -server kafka:19092 -noshell"
networks:
- alarm-network
alarmlogger:
image: ghcr.io/controlsystemstudio/phoebus/service-alarm-logger:master
depends_on:
kafka:
condition: service_healthy
elasticsearch:
condition: service_healthy
ports:
- "8080:8080"
environment:
LOGGING_LEVEL_ORG_PHOEBUS: "INFO"
command: >
java -jar /alarmlogger/service-alarm-logger-*.jar
-bootstrap.servers kafka:19092
-es_host elasticsearch
-es_port 9200
-noshell
networks:
- alarm-network
networks:
alarm-network:
driver: bridge
- Dominant language
- Java
- Stars
- 130
- Forks
- 132
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 22
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ControlSystemStudio/phoebus
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
ControlSystemStudio/phoebus#3998 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ControlSystemStudio/phoebus#3983 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ControlSystemStudio/phoebus#3979 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
ControlSystemStudio/phoebus#3962 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
ControlSystemStudio/phoebus#3865 · 1 comment ·
Maintainers usually reply within 1 day
All issues in ControlSystemStudio/phoebus
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
documentation good first issue priority: low
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
Gautam-aman/CODOVYN#52 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug/错误
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
FCL-Team/FoldCraftLauncher#1982 · 2 comments ·
Maintainers usually reply within 1 day
-
[BUG] micronaut-serde-oracle-jdbc-json brings a second OJDBC driver onto the runtime classpathPossibly taken @ZARAYACH claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
micronaut-projects/micronaut-serialization#1494 · 4 comments ·
Maintainers usually reply within 2 days