Google Cloud Platform provides hosting of Google's Bigtable database, the original inspiration of HBase and many NoSQL storage systems. Because HBase is so similar to Bigtable, running OpenTSDB 2.3 and later with Google's backend is simple. Indeed, the schemas (see HBase Schema) are exactly the same so all you have to do is create your Bigtable instance, create your TSDB tables using the Bigtable HBase shell, and fire up the TSDs.
Note
The clients for Bigtable are in beta and undergoing a number of changes. Performance should improve as we adjust the code and uncover new tuning parameters. Please help us out on the mailing list or by modifying the code in GitHub.
The following is a table of required and optional parameters to run OpenTSDB with Bigtable. These are in addition to the standard TSD configuration parameters from Configuration.
Property | Type | Required | Description | Default |
---|---|---|---|---|
google.bigtable.project.id | String | Required | The project ID hosting your Bigtable cluster. | |
google.bigtable.cluster.name | String | Required | The cluster ID you assigned to your Bigtable cluster at creation. | |
google.bigtable.zone.name | String | Required | The zone where your Bigtable cluster is operating; chosen at creation. | |
hbase.client.connection.impl | String | Required | The class that will be used to implement the HBase API AsyncBigtable will use as a shim between the Bigtable client and OpenTSDB. Set this to com.google.cloud.bigtable.hbase1_0.BigtableConnection | |
google.bigtable.auth.service.account.enable | Boolean | Required | Whether or not to use a Google cloud service account to connect. Set this to true | false |
google.bigtable.auth.json.keyfile | String | Required | The full path to the JSON formatted key file associated with the service account you want to use for Bigtable access. Download this from your cloud console. | |
google.bigtable.grpc.channel.count | Integer | Optional | The number of sockets opened to the Bigtable API for handling RPCs. For higher throughput consider increasing the channel count. | 4 |
Note
Google's Bigtable client communicates with their servers over HTTP2 with TLS using ALPN. As Java 7 and 8 (dunno about 9) lack native ALPN support, a library must be loaded at JVM start to modify the JVM's bytecode. The build script for OpenTSDB will attempt to detect your JDK version and download the proper version of ALPN but if you have a custom JVM or something other than Hotspot or OpenJDK you may run into issues. Try different versions of the alpn-boot JAR to see what works for you.
© 2010–2016 The OpenTSDB Authors
Licensed under the GNU LGPLv2.1+ and GPLv3+ licenses.
http://opentsdb.net/docs/build/html/user_guide/backends/bigtable.html