Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One line batch settings #1543

Closed
sduskis opened this issue Dec 4, 2017 · 0 comments
Closed

One line batch settings #1543

sduskis opened this issue Dec 4, 2017 · 0 comments
Assignees
Labels
api: bigtable Issues related to the googleapis/java-bigtable-hbase API.

Comments

@sduskis
Copy link
Contributor

sduskis commented Dec 4, 2017

There are a bunch of good batch settings:

    Configuration config = new Configuration(false);

    config.set(BigtableOptionsFactory.BIGTABLE_USE_CACHED_DATA_CHANNEL_POOL, "true");

    // Beam should use a different endpoint for data operations than online traffic.
    config.set(BigtableOptionsFactory.BIGTABLE_HOST_KEY,
      BigtableOptions.BIGTABLE_BATCH_DATA_HOST_DEFAULT);

    config.set(BigtableOptionsFactory.INITIAL_ELAPSED_BACKOFF_MILLIS_KEY,
      String.valueOf(TimeUnit.SECONDS.toMillis(5)));

    config.set(BigtableOptionsFactory.MAX_ELAPSED_BACKOFF_MILLIS_KEY,
      String.valueOf(TimeUnit.MINUTES.toMillis(5)));

this should be a one-liner. Also, it should encourage setting environment via the user agent.

ajaaym added a commit to ajaaym/cloud-bigtable-client that referenced this issue Sep 19, 2018
ajaaym added a commit to ajaaym/cloud-bigtable-client that referenced this issue Sep 24, 2018
sduskis pushed a commit that referenced this issue Sep 27, 2018
@google-cloud-label-sync google-cloud-label-sync bot added the api: bigtable Issues related to the googleapis/java-bigtable-hbase API. label Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the googleapis/java-bigtable-hbase API.
Projects
None yet
Development

No branches or pull requests

2 participants