CTSDB supports data write, query, and other operations over the HTTP protocol. Its HTTP APIs are RESTful, and the resource request method is to send standard HTTP requests to the corresponding URIs of resources. For example,
GET is used to get resources,
POST create (or update) resources,
PUT update resources, and
DELETE delete resources. You can perform almost all data operations through HTTP APIs. CTSDB ensures data security by providing VPC-based network isolation and access authentication with username and password. Data is exchanged through structures in JSON format. Each request will return a standard HTTP response status code and content. If an operation fails, you can get specific error information based on the response content.
The names of metrics, tags, and fields in CTSDB should be concise and clear.
bulkrequest between 1,000 and 5,000 and the physical size between 1 and 15 MB.
default_typefield in the
optionsparameter of the metric. For more information on metric modification, please see Updating Metric.
stringtype subject to the value of
max_string_lengthand discard the excessive part.
max_string_lengthcan be customized and is 256 characters by default. For more information on modification, please see Updating Metric.
time_zoneparameter, which is in the format of ISO 8601 UTC offset (e.g., +01:00 or -08:00). The specific time zone needs to be determined according to the region where the instance resides. Generally, the time zone for the Chinese mainland is UTC+8. For more information, please see Common Query Samples.