Table of Contents

Class ServerBandwidthHourEntity

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

One server's traffic in one UTC hour, rolled up from ServerBandwidthMinuteEntity. Table server_bandwidth_hour.

public class ServerBandwidthHourEntity
Inheritance
ServerBandwidthHourEntity
Inherited Members

Remarks

A pure function of the minute rows. Every column is recomputed from the minutes of its hour by the Control Panel's rollup job and written with ON CONFLICT DO UPDATE SET col = EXCLUDED.col, so running the rollup twice, from two panels, or after a minute row was rewritten, always leaves the same row. Nothing is ever added to a stored value.

Summed over process instances: a server that restarted inside the hour has one row here, and Instances says it restarted. Kept 13 months, so a year-on-year egress comparison is always possible. No foreign key and no xmin, for the reasons on the minute table.

Properties

AppRecvBytes

FishNet bytes delivered by the transport. Measured.

public long AppRecvBytes { get; set; }

Property Value

long

AppSentBytes

FishNet bytes handed to the transport. Measured.

public long AppSentBytes { get; set; }

Property Value

long

BucketStart

The UTC hour this row covers (database clock, as the minutes it came from).

public DateTime BucketStart { get; set; }

Property Value

DateTime

ConnectionsRefused

Connections refused before becoming a session in the hour.

public long ConnectionsRefused { get; set; }

Property Value

long

HandshakeFailures

Connections that failed their handshake in the hour.

public long HandshakeFailures { get; set; }

Property Value

long

Instances

How many process instances wrote those minutes. More than one means a restart.

public long Instances { get; set; }

Property Value

long

IntervalMs

The counted intervals summed, in milliseconds: about 3 600 000 for a server that ran the whole hour, less for one that started or stopped inside it.

public long IntervalMs { get; set; }

Property Value

long

MinutesSampled

How many minute rows the hour was rolled from.

public long MinutesSampled { get; set; }

Property Value

long

ServerKind

Which tier: 1 login, 2 world, 3 scene.

public int ServerKind { get; set; }

Property Value

int

ServerName

The server's configured name, copied as text.

public string ServerName { get; set; }

Property Value

string

SessionsActiveMax

The highest minute's session gauge in the hour.

public long SessionsActiveMax { get; set; }

Property Value

long

SessionsActiveSum

The minutes' session gauges summed. Divided by MinutesSampled it is the average number of sessions open while the server was sampled; stored as a sum so that the column stays an exact integer and the division happens when read.

public long SessionsActiveSum { get; set; }

Property Value

long

SessionsOpened

Sessions accepted in the hour.

public long SessionsOpened { get; set; }

Property Value

long

UdpRecvBytes

UDP payload bytes received. Measured by msquic.

public long UdpRecvBytes { get; set; }

Property Value

long

UdpRecvDatagrams

UDP datagrams received. Measured.

public long UdpRecvDatagrams { get; set; }

Property Value

long

UdpSentBytes

UDP payload bytes sent. Measured by msquic.

public long UdpSentBytes { get; set; }

Property Value

long

UdpSentDatagrams

UDP datagrams sent. Measured; an upper bound under bursts (see the minute table).

public long UdpSentDatagrams { get; set; }

Property Value

long