Return-Path: X-Original-To: apmail-aurora-dev-archive@minotaur.apache.org Delivered-To: apmail-aurora-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 62E8011E2B for ; Mon, 14 Jul 2014 18:27:01 +0000 (UTC) Received: (qmail 96811 invoked by uid 500); 14 Jul 2014 18:27:01 -0000 Delivered-To: apmail-aurora-dev-archive@aurora.apache.org Received: (qmail 96763 invoked by uid 500); 14 Jul 2014 18:27:01 -0000 Mailing-List: contact dev-help@aurora.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aurora.incubator.apache.org Delivered-To: mailing list dev@aurora.incubator.apache.org Received: (qmail 96744 invoked by uid 99); 14 Jul 2014 18:27:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2014 18:27:00 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kburg@foursquare.com designates 209.85.216.47 as permitted sender) Received: from [209.85.216.47] (HELO mail-qa0-f47.google.com) (209.85.216.47) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2014 18:26:56 +0000 Received: by mail-qa0-f47.google.com with SMTP id i13so3559987qae.6 for ; Mon, 14 Jul 2014 11:26:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foursquare.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=j2rLKXDtqURE7/TgVqqQ9lTxjuFp0NTiGxIwlnDo92w=; b=llr3UkQUtNVRSlCKuSLeUMfQdYYgueqI/HsEUwLb9z7l3oW5/CABPIwXdu6YJ8tjz+ rYQpO0RQdP1bRCmc6KZpS6FKhjIbZALGBpCWSwDxgSAI+CYlB2Am+FyDxU0zGM8kdVA7 XkxDC97OqvEvIur4Np7f7siqiLHIenwnm80Xw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=j2rLKXDtqURE7/TgVqqQ9lTxjuFp0NTiGxIwlnDo92w=; b=BEmqZTrNl2SVDH49UrS7I5bzmrxXPtZwzA1/Lia1SItKZMVqa5jcpGygz2yD0ISM4q zmkgSV9DCZ3kuVV8LxZ4MCxLqIY7Yzb3Z5LHSyktMpULtgOJoJUH6b6PMXmllYT3pfJY eCr5Jl7GPYGk+98uKavSlmHj2mVcpQ6OOyP2U4/w7y1wDg2FpeCtvwQ2yOtA+WEk6fWM XC/+PPZycL7gdtaJCxYnMIMxYZZe0DDHL5t5J+o4jZhrWbYBElvyxKATubncdStX7h2M Og+6NMCrz4ohCgNzjorHE93DDmItIm6jGUMEPFPQlP425/BAtAJrHKXDZBJpx+0Q76l9 L2vA== X-Gm-Message-State: ALoCoQl49SMa7nYyEuDH/Q3JZFL8TqKKWkXdLOA11CHMZ3hTvOKu9drakTYYaJSqOGpivor6UKav MIME-Version: 1.0 X-Received: by 10.224.115.3 with SMTP id g3mr26922666qaq.9.1405362395673; Mon, 14 Jul 2014 11:26:35 -0700 (PDT) Received: by 10.96.126.197 with HTTP; Mon, 14 Jul 2014 11:26:35 -0700 (PDT) In-Reply-To: References: Date: Mon, 14 Jul 2014 11:26:35 -0700 Message-ID: Subject: Re: Task Constraints From: Kevin Burg To: Josh Adams Cc: Brian Wickman , dev@aurora.incubator.apache.org Content-Type: multipart/alternative; boundary=047d7bdc96b060042b04fe2b6e83 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bdc96b060042b04fe2b6e83 Content-Type: text/plain; charset=UTF-8 I've confirmed by looking at that endpoint that new attributes are not being picked up and modified attributes are retaining their old values. This is after restarting both the slaves and the scheduler process. On Mon, Jul 14, 2014 at 11:09 AM, Josh Adams wrote: > Thanks Brian. Kevin should have some followup questions shortly. > > Josh > > > On Mon, Jul 14, 2014 at 10:37 AM, Brian Wickman > wrote: > >> host/rack should not be treated specially. >> >> If you go to the "/slaves" endpoint on the scheduler UI, what does it >> report as attributes being exported by your slaves? You might want to >> validate there that the "staging" attribute got picked up properly. If >> it's not getting picked up (e.g. the attributes are getting cached >> incorrectly by the scheduler?) then you should file an issue. >> >> >> On Fri, Jul 11, 2014 at 5:24 PM, Kevin Burg wrote: >> >>> Hi, >>> >>> I'm having trouble getting the task constraint resolver worker with >>> attributes other than 'host' and 'rack.' Are arbitrary attribute keys in >>> the mesos slaves supported currently? >>> >>> Here is the setup. >>> >>> The slaves are configured to run with >>> `--attributes=host:;rack:;staging:true` >>> >>> (I've also tried this with staging:1, and staging:foo) >>> >>> The constraint generated from the .aurora config looks like the following >>> Constraint(name:staging, constraint:>> value:ValueConstraint(negated:false, values:[true])>) >>> >>> The schedule request then gets vetoed with the following veto object: >>> Veto{reason=Constraint not satisfied: staging, score=1000, >>> valueMismatch=true}] >>> >>> The constraints generated for 'host' and 'rack' look identical except for >>> the different name of course. I've even tried bouncing every mesos and >>> aurora process on the machine to see if maybe stale attributes were being >>> assigned to the slaves. All the offers being made to the master look >>> correct though, which leads me to believe that the constraint solver just >>> doesn't work for arbitrary attributes. >>> >>> We would appreciate any help you can offer. >>> >>> Thanks, >>> Kevin >>> >> >> > > > -- > =============== > josh adams > production engineer > foursquare > > (gv) 415-830-4106 > =============== > foursquare.com/jobs > --047d7bdc96b060042b04fe2b6e83--