Skip to content

Commit

Permalink
Merge 13938cd into 05dea0b
Browse files Browse the repository at this point in the history
  • Loading branch information
mhasself committed Mar 14, 2022
2 parents 05dea0b + 13938cd commit ac1d3e9
Show file tree
Hide file tree
Showing 34 changed files with 2,954 additions and 868 deletions.
610 changes: 610 additions & 0 deletions agents/host_manager/host_manager.py

Large diffs are not rendered by default.

453 changes: 0 additions & 453 deletions agents/host_master/host_master.py

This file was deleted.

2 changes: 1 addition & 1 deletion agents/ocs_plugin_standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
for n,f in [
('RegistryAgent', 'registry/registry.py'),
('AggregatorAgent', 'aggregator/aggregator_agent.py'),
('HostMaster', 'host_master/host_master.py'),
('HostManager', 'host_manager/host_manager.py'),
('FakeDataAgent', 'fake_data/fake_data_agent.py'),
('InfluxDBAgent', 'influxdb_publisher/influxdb_publisher.py'),
]:
Expand Down
10 changes: 0 additions & 10 deletions bin/ocsbow

This file was deleted.

Binary file added docs/_static/ocs_web_hostmanager.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 63 additions & 0 deletions docs/agents/host_manager.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
.. highlight:: rst

.. _host_manager:

=================
HostManager Agent
=================

The HostManager Agent helps to manage the many Agent instances that
need to run on a single host machine, providing a way to start and
stop Agents without connecting to the host system.

For a complete discussion of this Agent and how to best use it, see
:ref:`centralized_management`.


.. argparse::
:module: agents.host_manager.host_manager
:func: make_parser
:prog: host_manager.py



Configuration File Examples
---------------------------

Note that the HostManager Agent usually runs on the native system,
and not in a Docker container. (If you did set up a HostManager in a
Docker container, it would only be able to start/stop agents within
that container.)

OCS Site Config
```````````````

Here's an example configuration block:

.. code-block:: yaml
{'agent-class': 'HostManager',
'instance-id': 'hm-mydaqhost1'}
By convention, the HostManager responsible for host ``<hostname>``
should be given instance-id ``hm-<hostname>``.


Description
-----------

Please see :ref:`centralized_management`.


Agent API
---------

.. autoclass:: agents.host_manager.host_manager.HostManager
:members:

Supporting APIs
---------------

.. automethod:: agents.host_manager.host_manager.HostManager._process_target_states

.. automethod:: agents.host_manager.host_manager.HostManager._reload_config
68 changes: 0 additions & 68 deletions docs/agents/host_master.rst

This file was deleted.

6 changes: 1 addition & 5 deletions docs/developer/site_config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ works like this:
should be included in the ``agent-paths`` variable in the SCF for
this host. For example, we might put the file in ``/simonsobs/agents``
and call it ``ocs_plugin_simonsobs.py``.
- When the site_config system (specifically the HostMaster agent)
- When the site_config system (specifically the HostManager agent)
needs to find a particular agent script, it:
- Adds any directories in ``agent-paths`` to the Python import path.
Expand All @@ -245,7 +245,3 @@ works like this:
A good example of a plugin script can be found in the OCS agents
directory, ``ocs_plugins_standard.py``.
Systemd Integration [empty]
===========================
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ write OCS Agents or Clients.
agents/influxdb_publisher
agents/registry
agents/fake_data
agents/host_master
agents/host_manager


.. toctree::
Expand Down

0 comments on commit ac1d3e9

Please sign in to comment.