fluent-plugin-bigquery 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e55e2b00afb7ffd8b32cc9b7fa0a305ab66af863
4
- data.tar.gz: b93594427c232d70db4f7ceca1a28554732b5122
3
+ metadata.gz: 35d59b338b96a20d4f2e1e3813a69c438e912ba2
4
+ data.tar.gz: cb181b560fa4733fa928d14f2d71900307e737f2
5
5
  SHA512:
6
- metadata.gz: 5662de9f1d839a5ef38fd04df24bd4b90de8bd4a494020ecde58e20191df1317322b903eaef985f7cdaf68f24260ed86b802a6aca53dfb3e3825772547cafaf9
7
- data.tar.gz: 03a4f811ccc74d36530a4d341218a31c9bc913f530321565696a6e70227c94067bc61a91c2ea97bd5ba5ebf2c617bc1da51e0c1b8c71e97037c444092f62c18c
6
+ metadata.gz: dbaf2f9cece39291dc996eb06ffa053b4c4894d19421605e86883104f93920ca75dc06d29a6afca644df240f9500a4037d1e265780102c991732847d121d0474
7
+ data.tar.gz: 318e66bd979a715d2f9faf53407ffa20916e70a01a1de313296ced23e372cbab8d38073405d161fcbc880b1585577272f4a3a879909e4161d7576c879d1b2685
data/.gitignore CHANGED
@@ -3,6 +3,7 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
+ .ruby-version
6
7
  Gemfile.lock
7
8
  InstalledFiles
8
9
  _yardoc
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 100, per second, per table
88
- * default average rate limit is 100, and spike rate limit is 1000
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
- * `1` is lowest value, without patches on Fluentd v0.10.41 or earlier
102
- * see `patches` below
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
 
@@ -1,6 +1,6 @@
1
1
  module Fluent
2
2
  module BigQueryPlugin
3
- VERSION = "0.2.7"
3
+ VERSION = "0.2.8"
4
4
  end
5
5
  end
6
6
 
@@ -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 Found: Table yourproject_id:yourdataset_id.foo" }
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.7
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-01-11 00:00:00.000000000 Z
11
+ date: 2015-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake