Class/Object

com.youtube.vitess.proto.query

RealtimeStats

Related Docs: object RealtimeStats | package query

Permalink

final case class RealtimeStats(healthError: String = "", secondsBehindMaster: Int = 0, binlogPlayersCount: Int = 0, secondsBehindMasterFilteredReplication: Long = 0L, cpuUsage: Double = 0.0, qps: Double = 0.0) extends GeneratedMessage with Message[RealtimeStats] with Updatable[RealtimeStats] with Product with Serializable

RealtimeStats contains information about the tablet status

healthError

health_error is the last error we got from health check, or empty is the server is healthy. This is used for subset selection, we do not send queries to servers that are not healthy.

secondsBehindMaster

seconds_behind_master is populated for slaves only. It indicates how far behind on (MySQL) replication a slave currently is. It is used by clients for subset selection (so we don't try to send traffic to tablets that are too far behind). NOTE: This field must not be evaluated if "health_error" is not empty. TODO(mberlin): Let's switch it to int64 instead?

binlogPlayersCount

bin_log_players_count is the number of currently running binlog players. if the value is 0, it means that filtered replication is currently not running on the tablet. If >0, filtered replication is running. NOTE: This field must not be evaluated if "health_error" is not empty.

secondsBehindMasterFilteredReplication

seconds_behind_master_filtered_replication is populated for the receiving master of an ongoing filtered replication only. It specifies how far the receiving master lags behind the sending master. NOTE: This field must not be evaluated if "health_error" is not empty. NOTE: This field must not be evaluated if "bin_log_players_count" is 0.

cpuUsage

cpu_usage is used for load-based balancing

qps

qps is the average QPS (queries per second) rate in the last XX seconds where XX is usually 60 (See query_service_stats.go).

Annotations
@SerialVersionUID()
Linear Supertypes
Product, Equals, Updatable[RealtimeStats], Message[RealtimeStats], GeneratedMessage, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RealtimeStats
  2. Product
  3. Equals
  4. Updatable
  5. Message
  6. GeneratedMessage
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RealtimeStats(healthError: String = "", secondsBehindMaster: Int = 0, binlogPlayersCount: Int = 0, secondsBehindMasterFilteredReplication: Long = 0L, cpuUsage: Double = 0.0, qps: Double = 0.0)

    Permalink

    healthError

    health_error is the last error we got from health check, or empty is the server is healthy. This is used for subset selection, we do not send queries to servers that are not healthy.

    secondsBehindMaster

    seconds_behind_master is populated for slaves only. It indicates how far behind on (MySQL) replication a slave currently is. It is used by clients for subset selection (so we don't try to send traffic to tablets that are too far behind). NOTE: This field must not be evaluated if "health_error" is not empty. TODO(mberlin): Let's switch it to int64 instead?

    binlogPlayersCount

    bin_log_players_count is the number of currently running binlog players. if the value is 0, it means that filtered replication is currently not running on the tablet. If >0, filtered replication is running. NOTE: This field must not be evaluated if "health_error" is not empty.

    secondsBehindMasterFilteredReplication

    seconds_behind_master_filtered_replication is populated for the receiving master of an ongoing filtered replication only. It specifies how far the receiving master lags behind the sending master. NOTE: This field must not be evaluated if "health_error" is not empty. NOTE: This field must not be evaluated if "bin_log_players_count" is 0.

    cpuUsage

    cpu_usage is used for load-based balancing

    qps

    qps is the average QPS (queries per second) rate in the last XX seconds where XX is usually 60 (See query_service_stats.go).

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val binlogPlayersCount: Int

    Permalink

    bin_log_players_count is the number of currently running binlog players.

    bin_log_players_count is the number of currently running binlog players. if the value is 0, it means that filtered replication is currently not running on the tablet. If >0, filtered replication is running. NOTE: This field must not be evaluated if "health_error" is not empty.

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def companion: RealtimeStats.type

    Permalink
    Definition Classes
    RealtimeStats → GeneratedMessage
  8. val cpuUsage: Double

    Permalink

    cpu_usage is used for load-based balancing

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getField(__field: FieldDescriptor): PValue

    Permalink
    Definition Classes
    RealtimeStats → GeneratedMessage
  13. def getFieldByNumber(__fieldNumber: Int): Any

    Permalink
    Definition Classes
    RealtimeStats → GeneratedMessage
  14. val healthError: String

    Permalink

    health_error is the last error we got from health check, or empty is the server is healthy.

    health_error is the last error we got from health check, or empty is the server is healthy. This is used for subset selection, we do not send queries to servers that are not healthy.

  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def mergeFrom(_input__: CodedInputStream): RealtimeStats

    Permalink
    Definition Classes
    RealtimeStats → Message
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. val qps: Double

    Permalink

    qps is the average QPS (queries per second) rate in the last XX seconds where XX is usually 60 (See query_service_stats.go).

  21. val secondsBehindMaster: Int

    Permalink

    seconds_behind_master is populated for slaves only.

    seconds_behind_master is populated for slaves only. It indicates how far behind on (MySQL) replication a slave currently is. It is used by clients for subset selection (so we don't try to send traffic to tablets that are too far behind). NOTE: This field must not be evaluated if "health_error" is not empty. TODO(mberlin): Let's switch it to int64 instead?

  22. val secondsBehindMasterFilteredReplication: Long

    Permalink

    seconds_behind_master_filtered_replication is populated for the receiving master of an ongoing filtered replication only.

    seconds_behind_master_filtered_replication is populated for the receiving master of an ongoing filtered replication only. It specifies how far the receiving master lags behind the sending master. NOTE: This field must not be evaluated if "health_error" is not empty. NOTE: This field must not be evaluated if "bin_log_players_count" is 0.

  23. final def serializedSize: Int

    Permalink
    Definition Classes
    RealtimeStats → GeneratedMessage
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toByteArray: Array[Byte]

    Permalink
    Definition Classes
    GeneratedMessage
  26. def toByteString: ByteString

    Permalink
    Definition Classes
    GeneratedMessage
  27. def toPMessage: PMessage

    Permalink
    Definition Classes
    GeneratedMessage
  28. def toString(): String

    Permalink
    Definition Classes
    RealtimeStats → AnyRef → Any
  29. def update(ms: (Lens[RealtimeStats, RealtimeStats]) ⇒ Mutation[RealtimeStats]*): RealtimeStats

    Permalink
    Definition Classes
    Updatable
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. def withBinlogPlayersCount(__v: Int): RealtimeStats

    Permalink
  34. def withCpuUsage(__v: Double): RealtimeStats

    Permalink
  35. def withHealthError(__v: String): RealtimeStats

    Permalink
  36. def withQps(__v: Double): RealtimeStats

    Permalink
  37. def withSecondsBehindMaster(__v: Int): RealtimeStats

    Permalink
  38. def withSecondsBehindMasterFilteredReplication(__v: Long): RealtimeStats

    Permalink
  39. def writeDelimitedTo(output: OutputStream): Unit

    Permalink
    Definition Classes
    GeneratedMessage
  40. def writeTo(_output__: CodedOutputStream): Unit

    Permalink
    Definition Classes
    RealtimeStats → GeneratedMessage
  41. def writeTo(output: OutputStream): Unit

    Permalink
    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. def getAllFields: Map[FieldDescriptor, Any]

    Permalink
    Definition Classes
    GeneratedMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use toPMessage

  2. def getField(field: FieldDescriptor): Any

    Permalink
    Definition Classes
    GeneratedMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use getField that accepts a ScalaPB descriptor and returns PValue

Inherited from Product

Inherited from Equals

Inherited from Updatable[RealtimeStats]

Inherited from Message[RealtimeStats]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped