Table of Contents

Class DaemonHostEntity

Namespace
FishMMO.Database.Npgsql.Entities
Assembly
FishMMO-DB.dll

One machine running an AppHealthMonitor daemon.

public class DaemonHostEntity
Inheritance
DaemonHostEntity
Inherited Members

Remarks

The daemon writes this row and refreshes its heartbeat; nothing else does. A host that stops beating is the daemon going quiet, which is a different fault from an application going down — one needs somebody on that machine, the other does not.

Properties

Apps

The applications it supervises.

public ICollection<DaemonAppEntity> Apps { get; set; }

Property Value

ICollection<DaemonAppEntity>

DaemonVersion

The daemon build running there.

public string DaemonVersion { get; set; }

Property Value

string

HostName

The machine's name, as the daemon reports it. Unique.

public string HostName { get; set; }

Property Value

string

Remarks

The identity a command is addressed to. A daemon claims only commands naming its own host, so this string is also a scope boundary: get it wrong on two machines and they will both execute each other's work.

ID

Surrogate key.

public long ID { get; set; }

Property Value

long

LastHeartbeatUtc

Last time the daemon said it was alive, by the database clock.

public DateTime LastHeartbeatUtc { get; set; }

Property Value

DateTime

Remarks

Stamped by the database as the heartbeat is applied, never by the daemon: its age is judged on the panel against the same clock (DaemonService.FetchHostsAsync).

OSDescription

What the operating system calls itself.

public string OSDescription { get; set; }

Property Value

string

ProcessorCount

Logical processors, for judging load.

public int ProcessorCount { get; set; }

Property Value

int

StartedUtc

When the daemon process started.

public DateTime StartedUtc { get; set; }

Property Value

DateTime