Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E6B6A200C55 for ; Thu, 30 Mar 2017 00:39:44 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E5252160B9D; Wed, 29 Mar 2017 22:39:44 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 391FF160B8A for ; Thu, 30 Mar 2017 00:39:44 +0200 (CEST) Received: (qmail 35841 invoked by uid 500); 29 Mar 2017 22:39:43 -0000 Mailing-List: contact commits-help@beam.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.apache.org Delivered-To: mailing list commits@beam.apache.org Received: (qmail 35832 invoked by uid 99); 29 Mar 2017 22:39:43 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Mar 2017 22:39:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 11145C2458 for ; Wed, 29 Mar 2017 22:39:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id adq8XcPv7Sn1 for ; Wed, 29 Mar 2017 22:39:42 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 6C1AC5FBBB for ; Wed, 29 Mar 2017 22:39:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id E58E7E06E2 for ; Wed, 29 Mar 2017 22:39:41 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 960472416E for ; Wed, 29 Mar 2017 22:39:41 +0000 (UTC) Date: Wed, 29 Mar 2017 22:39:41 +0000 (UTC) From: "Solomon Duskis (JIRA)" To: commits@beam.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BEAM-1269) BigtableIO should make more efficient use of connections MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 29 Mar 2017 22:39:45 -0000 [ https://issues.apache.org/jira/browse/BEAM-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15948013#comment-15948013 ] Solomon Duskis commented on BEAM-1269: -------------------------------------- BigtableIO should not set data channel pool counts for reads. This is the current line: // Set data channel count to one because there is only 1 scanner in this session BigtableOptions.Builder clonedBuilder = options.toBuilder() .setDataChannelCount(1); BigtableOptions optionsWithAgent = clonedBuilder.setUserAgent(getBeamSdkPartOfUserAgent()).build(); It should be more like: BigtableOptions optionsWithAgent = options .toBuilder() .setUserAgent(getBeamSdkPartOfUserAgent()) . setUseCachedDataPool(true) . setDataHost(BigtableOptions.BIGTABLE_BATCH_DATA_HOST_DEFAULT) .build(); > BigtableIO should make more efficient use of connections > -------------------------------------------------------- > > Key: BEAM-1269 > URL: https://issues.apache.org/jira/browse/BEAM-1269 > Project: Beam > Issue Type: Improvement > Components: sdk-java-gcp > Reporter: Daniel Halperin > Labels: newbie, starter > > RIght now, {{BigtableIO}} opens up a new Bigtable session for every DoFn, in the {{@Setup}} function. However, sessions can support multiple connections, so perhaps this code should be modified to open up a smaller session pool and then allocation connections in {{@StartBundle}}. > This would likely make more efficient use of resources, especially for highly multithreaded workers. -- This message was sent by Atlassian JIRA (v6.3.15#6346)