fluent-plugin-bigquery 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +10 -5
- data/lib/fluent/plugin/bigquery/version.rb +1 -1
- data/lib/fluent/plugin/out_bigquery.rb +1 -1
- data/test/plugin/test_out_bigquery.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 35d59b338b96a20d4f2e1e3813a69c438e912ba2
|
|
4
|
+
data.tar.gz: cb181b560fa4733fa928d14f2d71900307e737f2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dbaf2f9cece39291dc996eb06ffa053b4c4894d19421605e86883104f93920ca75dc06d29a6afca644df240f9500a4037d1e265780102c991732847d121d0474
|
|
7
|
+
data.tar.gz: 318e66bd979a715d2f9faf53407ffa20916e70a01a1de313296ced23e372cbab8d38073405d161fcbc880b1585577272f4a3a879909e4161d7576c879d1b2685
|
data/.gitignore
CHANGED
data/README.md
CHANGED
|
@@ -83,10 +83,12 @@ Important options for high rate events are:
|
|
|
83
83
|
* 2 or more tables are available with ',' separator
|
|
84
84
|
* `out_bigquery` uses these tables for Table Sharding inserts
|
|
85
85
|
* these must have same schema
|
|
86
|
+
* `buffer_chunk_limit`
|
|
87
|
+
* max size of an insert or chunk (default 1000000 or 1MB)
|
|
88
|
+
* the max size is limited to 1MB on BigQuery
|
|
86
89
|
* `buffer_chunk_records_limit`
|
|
87
|
-
* number of records over streaming inserts API call is limited as
|
|
88
|
-
*
|
|
89
|
-
* `out_bigquery` flushes buffer with 100 records for 1 inserts API call
|
|
90
|
+
* number of records over streaming inserts API call is limited as 500, per insert or chunk
|
|
91
|
+
* `out_bigquery` flushes buffer with 500 records for 1 inserts API call
|
|
90
92
|
* `buffer_queue_limit`
|
|
91
93
|
* BigQuery streaming inserts needs very small buffer chunks
|
|
92
94
|
* for high-rate events, `buffer_queue_limit` should be configured with big number
|
|
@@ -98,8 +100,11 @@ Important options for high rate events are:
|
|
|
98
100
|
* 10 or more threads seems good for inserts over internet
|
|
99
101
|
* less threads may be good for Google Compute Engine instances (with low latency for BigQuery)
|
|
100
102
|
* `flush_interval`
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
+
* interval between data flushes (default 0.25)
|
|
104
|
+
* you can set subsecond values such as `0.15` on Fluentd v0.10.42 or later
|
|
105
|
+
|
|
106
|
+
See [Quota policy](https://cloud.google.com/bigquery/streaming-data-into-bigquery#quota)
|
|
107
|
+
section in the Google BigQuery document.
|
|
103
108
|
|
|
104
109
|
### Authentication
|
|
105
110
|
|
|
@@ -300,7 +300,7 @@ module Fluent
|
|
|
300
300
|
res_obj = extract_response_obj(res.body)
|
|
301
301
|
message = res_obj['error']['message'] || res.body
|
|
302
302
|
if res_obj
|
|
303
|
-
if @auto_create_table and res_obj and res_obj['error']['code'] == 404 and /Not Found: Table/ =~ message.to_s
|
|
303
|
+
if @auto_create_table and res_obj and res_obj['error']['code'] == 404 and /Not Found: Table/i =~ message.to_s
|
|
304
304
|
# Table Not Found: Auto Create Table
|
|
305
305
|
create_table(table_id)
|
|
306
306
|
end
|
|
@@ -779,7 +779,7 @@ class BigQueryOutputTest < Test::Unit::TestCase
|
|
|
779
779
|
s = stub!
|
|
780
780
|
s.success? { false }
|
|
781
781
|
s.body { JSON.generate({
|
|
782
|
-
'error' => { "code" => 404, "message" => "Not
|
|
782
|
+
'error' => { "code" => 404, "message" => "Not found: Table yourproject_id:yourdataset_id.foo" }
|
|
783
783
|
}) }
|
|
784
784
|
s.status { 404 }
|
|
785
785
|
s
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-bigquery
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Naoya Ito
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-04-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|