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 14A5D200ACA for ; Thu, 9 Jun 2016 21:47:47 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 132AE160A58; Thu, 9 Jun 2016 19:47:47 +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 5B8B0160A29 for ; Thu, 9 Jun 2016 21:47:46 +0200 (CEST) Received: (qmail 16255 invoked by uid 500); 9 Jun 2016 19:47:45 -0000 Mailing-List: contact user-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@accumulo.apache.org Delivered-To: mailing list user@accumulo.apache.org Received: (qmail 16244 invoked by uid 99); 9 Jun 2016 19:47:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jun 2016 19:47:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 175EDC0D4B for ; Thu, 9 Jun 2016 19:47:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.198 X-Spam-Level: X-Spam-Status: No, score=0.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id P4rloKm7L8Qh for ; Thu, 9 Jun 2016 19:47:44 +0000 (UTC) Received: from mail-pf0-f178.google.com (mail-pf0-f178.google.com [209.85.192.178]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 5DE935F1D5 for ; Thu, 9 Jun 2016 19:47:43 +0000 (UTC) Received: by mail-pf0-f178.google.com with SMTP id 62so15852986pfd.1 for ; Thu, 09 Jun 2016 12:47:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-transfer-encoding; bh=t9q0f8znvzDLzV8CFrisQ9FfQF69M8cQK8xxXoJ4Hmw=; b=U4A+Q417A1RtqmkA3R0fJwk2oFJVsAvMC4MHCY22d74a4NPD2GXKJ9xcYFOSI0amRu 6SNpHetJrft6FI/F9CmZDU2mVA2oS5CcGCAW09mppRxUWdFPM53mH0V60KsV15y7bsG3 /QYNwM2dpLzZeznEcXXnvNJaGrO5nrlSXYXWSEpNOp6sMLeNw/HITa0lWPawGGuoxiKZ ZKhccui+u/YvryUDEihHp4HoQMAc5EdssYBWTCSEMLB6PrgFYzDkOtR4AottGl+ODEdQ snhwSf/Dsee6zRbTejU7mj9N7e6FixRtMvyGqFdzpgCowxqVrmpQQsAKA+Bp9vf8oMf0 rlwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-transfer-encoding; bh=t9q0f8znvzDLzV8CFrisQ9FfQF69M8cQK8xxXoJ4Hmw=; b=B7OLCiwU9Fv8uKvpzCg1uN51EqWIENeJ2KJlty0qWGtgAESZK7mIeH+yCtPNffCOgp 4nt/YERdobuzUR+HD3e/6Ti+ql11+RdQAKPXzGu2z3HfpyIugc08XG9x5Pl9OCE/XEBt uNMy1xkB/nsRyv2pqzpUQbNPk5fnDY56Sr5kxkfmKIaifRltcVh3bqEZJwwi084uu2bd GFQ7YjsAvNqyiPWgWmlh+VQpZWQbvx+ji5v5+7f4tNlVrbISyyh1TAJG6eQygwMhayvh NjtSCy6F+6hyquGUgicOfzmkKo7HV2A+YMg309ai2uhTrEO5SCwO14q1iojJC4hhi+L+ fnAA== X-Gm-Message-State: ALyK8tJuux5EACeEX9iDLlG+I3+Z5wLGQEqvNzAG/CcVLUu+jwQQlusrc2FxE4LOaLB+uA== X-Received: by 10.98.5.133 with SMTP id 127mr6269456pff.110.1465501661800; Thu, 09 Jun 2016 12:47:41 -0700 (PDT) Received: from hw10447.local (207.155.208.210.ptr.us.xo.net. [207.155.208.210]) by smtp.googlemail.com with ESMTPSA id hz9sm11995573pac.13.2016.06.09.12.47.40 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 09 Jun 2016 12:47:41 -0700 (PDT) Message-ID: <5759C7DA.5000303@gmail.com> Date: Thu, 09 Jun 2016 15:47:38 -0400 From: Josh Elser User-Agent: Postbox 3.0.11 (Macintosh/20140602) MIME-Version: 1.0 To: user@accumulo.apache.org Subject: Re: visibility constraint performance References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit archived-at: Thu, 09 Jun 2016 19:47:47 -0000 Keith Turner wrote: > > > On Thu, Jun 9, 2016 at 2:49 PM, Jonathan Wonders > wrote: > > Hi All, > > I've been tracking down some performance issues on a few 1.6.x > environments and noticed some interesting and potentially > undesirable behavior in the visibility constraint. When the > associated visibility evaluator checks a token to see if the user > has a matching authorization, it uses the security operations from > the tablet server's constraint environment which ends up > authenticating the user's credentials on each call. This will end > up flooding logs with Audit messages corresponding to these > authentications if the Audit logging is enabled. It also consumes a > non-negligible amount of CPU, produces a lot of garbage (maybe > 50-60% of that generated under a heavy streaming ingest load), and > can cause some contention between client pool threads when accessing > the ZooCache. > > My initial measurements indicate a 25-30% decrease in ingest rate > (entries/s and MB/s) for my environement and workload when this > constraint is enabled. This is with the Audit logging disabled. > > Is this intended behavior? It seems like the authentication is > redundant with the authentication that is performed at the beginning > of the update session. > > > No. It would be best to avoid that behavior. Agreed. Want to open up something on JIRA? It sounds like there might be a few things we can investigate. * Synchronization/concurrency on ZooCache * Excessive object creation when using the VisibilityConstraint * Noticeable time spent creating Audit messages which are not logged (Auditing is disabled) I miss any points?