EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Phoebus connection to alarm server / Kafka
From: Ian Gillingham via Tech-talk <tech-talk at aps.anl.gov>
To: "Kasemir, Kay" <kasemirk at ornl.gov>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 29 Jun 2022 11:28:08 +0100
The information that you have both given me has helped get me over the hurdle of configuration and progress has been made.


I now have a Kafka server with a new alarm topic (along with the original Accelerator topic).

I have modified the Kafka server.properties to use the host LAN interface (rather than localhost loop-back).

The Alarm server is now started with the '-server <host>:9092' switch

Phoebus on the Windows client now has a settings.ini file, which includes the line: "org.phoebus.applications.alarm/server=<host>:9092"

Now Phoebus runs on the Windows workstation and sees the alarm server and all available topics.


Many thanks both Kay and Malte for your helpful advice.

Ian

-----Original Message-----
From: "Kasemir, Kay" <kasemirk at ornl.gov>
To: ian.gillingham at gmail.com <ian.gillingham at gmail.com>, tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>, "Gotz, Malte" <malte.gotz at helmholtz-berlin.de>
Subject: Re: Phoebus connection to alarm server / Kafka
Date: Tue, 28 Jun 2022 12:22:19 +0000

Note that you can share the same Kafka server for multiple alarm setups.
Depending on your overall infrastructure, you can decide to either have one central kafka setup, so all the alarm tools (server, GUI) point to that one:

org.phoebus.applications.alarm/server=the_one_kafka_server.mysite.org:9092

On that server, you create the alarm topics for say "Accelerator", "Cryo", "Facilities".
For each one, you start an alarm server. The alarm server has a command-line option to select "Accelerator" or "Cryo" or "Facilities", seehttps://github.com/ControlSystemStudio/phoebus/blob/500069034bda5b64a191df55b9ac709bd13b2278/services/alarm-server/src/main/java/org/phoebus/applications/alarm/server/AlarmServerMain.java#L537

For the GUI, you have two options. You can either do this:

# Start with "Accelerator" as the default for newly opened Alarm Table and Alarm Tree:

org.phoebus.applications.alarm/config_name=Accelerator

# .. but allow selecting any of the three setups via a drop-down on the alarm table & tree:

org.phoebus.applications.alarm/config_names=Accelerator, Cryo, Facilities


Or you do this:


# Start with "Accelerator" as the default for newly opened Alarm Table and Alarm Tree:

org.phoebus.applications.alarm/config_name=Accelerator

# .. and don't allow changing that:

org.phoebus.applications.alarm/config_names=



So possible options include:
a) Run one Kafka server for your site, which may be shared with other tools that use Kafka
b) Run one Kafka server per alarm setup, and use it only for that.
Kinda like running MySQL or Oracle, where you typically share it with a variety of applications, but you can also run an instance just for one app.

You _always_ need to run one alarm server per configuration.

On the GUI side, you can then decide to
a) Allow access to multiple alarm setups, operators can select at runtime
b) Lock the CS-Studio GUI for the main control room to "Accelerator", the one for the cryo control room to "Cryo" etc.

-Kay





From: Tech-talk on behalf of Gotz, Malte via Tech-talk
 

this: https://control-system-studio.readthedocs.io/en/latest/preference_properties.html#preference-settings

is an overview of all the preferences available for Phoebus, I like to use as a reference. Luckily, alarm is at the very top.

You need to preface the property with the package. So, create a settings file with:


org.phoebus.applications.alarm/server=your.host.com:9092

org.phoebus.applications.alarm/config_name=YourTopic

org.phoebus.applications.alarm/config_names=YourTopic, YourOtherTopic

 

and pass it to Phoebus with -settings your-settings.ini

 

 

Von: Tech-talk <tech-talk-bounces at aps.anl.gov> Im Auftrag von Ian Gillingham via Tech-talk

 

I now need to modify it for my own requirements and have used the phoebus/app/alarm/examples/create_alarm_topics.sh script to create a new topic.

 

I will have Phoebus clients running on Windows machines (on the same network).

 

Is someone able to point me at the documentation as to where to edit Phoebus configuration to tell it which host:port to connect to for the alarm server (running on a single Linux box) and to change the Kafka topic?


Attachment: signature.asc
Description: This is a digitally signed message part


References:
Re: Phoebus connection to alarm server / Kafka Kasemir, Kay via Tech-talk

Navigate by Date:
Prev: Re: Phoebus connection to alarm server / Kafka Ian Gillingham via Tech-talk
Next: Re: StreamDevice return state error Kasemir, Kay via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
Navigate by Thread:
Prev: Re: Phoebus connection to alarm server / Kafka Ian Gillingham via Tech-talk
Next: added the pv in synapps 网易邮件中心 via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·