# octavia.amphorae.backends.health_daemon package

## Submodules

## octavia.amphorae.backends.health_daemon.health_daemon module

build_stats_message()

  Build a stats message based on retrieved listener statistics.

  Example version 3 message without UDP (note that values are deltas, not absolutes):

      {"id": "<amphora_id>",
       "seq": 67,
       "listeners": {
         "<listener_id>": {
           "status": "OPEN",
           "stats": {
             "tx": 0,
             "rx": 0,
             "conns": 0,
             "totconns": 0,
             "ereq": 0
           }
         }
       },
       "pools": {
           "<pool_id>:<listener_id>": {
             "status": "UP",
             "members": {
               "<member_id>": "no check"
             }
           }
       },
       "ver": 3
      }

calculate_stats_deltas(listener_id, row)

get_counters()

get_counters_file()

get_stats(stat_sock_file)

list_sock_stat_files(hadir=None)

persist_counters()

  Attempt to persist the latest statistics values

run_sender(cmd_queue)

## octavia.amphorae.backends.health_daemon.health_sender module

class UDPStatusSender

  Bases: `object`

  dosend(obj)
  update(dest, port)

round_robin_addr(addrinfo_list)

## octavia.amphorae.backends.health_daemon.status_message module

decode_obj(binary_array)

encode_obj(obj)

get_hmac(payload, key, hex=True)

  Get digest for the payload.

  The hex param is for backward compatibility, so the package data sent from the existing amphorae can still be checked in the previous approach.

get_payload(envelope, key, hex=True)

to_hex(byte_array)

unwrap_envelope(envelope, key)

  A backward-compatible way to get data.

  We may still receive package from amphorae that are using digest() instead of hexdigest()

wrap_envelope(obj, key, hex=True)

## Module contents

this page last updated: 2026-03-10 21:33:29

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

found an error? report a bug