Return-Path: X-Original-To: apmail-incubator-libcloud-archive@minotaur.apache.org Delivered-To: apmail-incubator-libcloud-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5C8071B6A for ; Tue, 19 Apr 2011 15:41:14 +0000 (UTC) Received: (qmail 67759 invoked by uid 500); 18 Apr 2011 20:54:34 -0000 Delivered-To: apmail-incubator-libcloud-archive@incubator.apache.org Received: (qmail 67738 invoked by uid 500); 18 Apr 2011 20:54:34 -0000 Mailing-List: contact libcloud-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: libcloud@incubator.apache.org Delivered-To: mailing list libcloud@incubator.apache.org Received: (qmail 67730 invoked by uid 99); 18 Apr 2011 20:54:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Apr 2011 20:54:34 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [74.125.82.175] (HELO mail-wy0-f175.google.com) (74.125.82.175) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Apr 2011 20:54:27 +0000 Received: by wye20 with SMTP id 20so4790727wye.6 for ; Mon, 18 Apr 2011 13:54:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.142.85 with SMTP id h63mr5127683wej.84.1303160046327; Mon, 18 Apr 2011 13:54:06 -0700 (PDT) Received: by 10.216.21.133 with HTTP; Mon, 18 Apr 2011 13:54:06 -0700 (PDT) X-Originating-IP: [173.164.98.174] In-Reply-To: References: Date: Mon, 18 Apr 2011 13:54:06 -0700 Message-ID: From: Justin Donaldson To: Tomaz Muraus Cc: libcloud@incubator.apache.org Content-Type: multipart/alternative; boundary=0016e6d624f8a597b604a13797bf X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [libcloud] adding i386 and x86_64 architecture flags for NodeSize and NodeImage, and utilizing the driver object in NodeSize --0016e6d624f8a597b604a13797bf Content-Type: text/plain; charset=ISO-8859-1 The image problem is difficult, I see. My thought would be just to mark images as None if it's not possible to detect from a provider field. My workflow generally consists of sticking to ubuntu 10.04 for the base image, and I don't mind sorting out the official image/architecture on a per-provider basis. I just want to make sure I can get a consistent node kernel, for apt-get (sudo aptitude install ia32-libs). Node/kernel sizes should be able to be determined without a huge amount of effort... AFAIK most providers offer 64 bit kernels by default, and then offer 32-bit userland by default (brightbox, for example). Amazon is a bit weird in that sense since they offer 32-bit kernels. Anybody know of anyone else offering 32-bit? The key point is that 64-bit kernels should be able to load anything (64-bit, 32-bit, or None/unknown), whereas 32-bit kernels would need an explicit 32 bit image. If you can just nail down the node size architecture, it's still useful. Another thought re: specifying node sizes... Many other providers have a granular ability to specify memory, cpu "size", and disk size independently. My thought would be, rather than retrieving a consistent global list of generic nodes, there should be some ability to query for matching nodes per-provider. E.g. instead of the list_nodes() function, a function such as: query_sizes(min_cpu, min_disk, max_price, etc...) could be specified. For providers that have static node sizes, the global list is filtered based on the parameters provided. For providers that have granular specification, a list containing a single node is returned. The single node is tuned to the query requirements as closely as possible. Thanks again to the libcloud team, I really appreciate the organizational efforts behind this project -Justin On Mon, Apr 18, 2011 at 3:20 AM, Tomaz Muraus wrote: > In general I am OK with adding "architecture" attribute to the NodeSize and > NodeImage class. > > Before adding it, we would need to research how many providers actually > expose this attributes through their API. > > I know that many providers don't explicitly include architecture attribute > in the "list images" response so to figure out the actual image architecture > we would need to parse it from the image name which is less than ideal. > > > > -- Justin Donaldson, BigML, Inc. o: 313-31BIGML | c: 919-BUZZJJD --0016e6d624f8a597b604a13797bf--