"Call home" and tell your version, uptime, stats.
In a data center environment, data administration can be simplified a great deal if we know what versions of Tarantool are deployed, and their stats. Provide a feature that (optionally) sends these stats to a centralized dashboard.
What we need to do exactly:
Add two configuration variables:
# Set to ip:port of a global statistics daemon
stat = ip:port
It should not be set by default, but it should be easy to set it to Mail.Ru statd ip/port.
If this option is set, once a minute Tarantool should send its global statistics to statd.
For now, a connection-less UDP datagram is sufficient. If it is easier from implementation
point of view to use TCP and a connection-oriented protocol, it should be used
Statd understands iproto protocol, and accepts an iproto packet which contains a set
of key-value pairs. The following keys are mandatory:
- product name
- uptime
- path to configuration file
- hostname
We also need to send the following keys:
- version
- rps
- configuration file (as yaml/output of show configuration)
- slab statistics (items_
Blueprint information
- Status:
- Not started
- Approver:
- Kostja Osipov
- Priority:
- High
- Drafter:
- Kostja Osipov
- Direction:
- Approved
- Assignee:
- Dmitry Simonenko
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by