<div dir="ltr">Hi Jorge,<div><br></div><div>So, one can query a pre-defined UDP socket or "stats HTTP service" (which can be an in-band service, by the way) and HAProxy will give all kinds of useful stats on the current listener, its pools, its members, etc. We will probably be querying this service in any case to detect things like members going down, etc. for sending notifications upstream. The problem is this interface presently resets state whenever haproxy is reloaded, which needs to happen whenever there's a configuration change. I was able to meet with the HAProxy team (including Willy Tarreau), and they're interested in making improvements to HAProxy that we would find useful. Foremost on their list was the ability to preserve this state information between restarts.</div><div><br></div><div>Until that's ready and in a stable release of haproxy, it's also pretty trivial to parse out IP addresses and listening ports from the haproxy config, and use these to populate a series of IPtables chains whose entire purpose is to gather bandwidth I/O data. These tables won't give you things like max connnection counts, etc., but if you're billing on raw bandwidth usage, these stats are guaranteed to be accurate and survive through haproxy restarts. It also does not require one to scan logs, and is available cheaply in real time. (This is how we bill for bandwidth on our current software load balancer product.)</div><div><br></div><div>My vote would be to use the IPTables approach for now until HAProxy is able to retain state between restarts. For other stats data (eg. max connection counts, total number of requests), I would recommend gathering this data from the haproxy daemon, and keeping an external state file that we update immediately before restarting haproxy. (Yes, this means we lose some information on connections that are still open when haproxy restarts, but it gives us an "approximate" good value since we anticipate haproxy restarts being relatively rare in comparison to serving actual requests).</div><div><br></div><div>Logs are still very handy, and I agree that if extreme accuracy in billing is required, this is the way to get that data. Logs are also very handy for users to have for troubleshooting purposes. But I think logs are not well suited to providing data which will be consumed in real time (eg. stuff which will populate a dashboard.)</div><div><br></div><div>What do y'all think of this?</div><div><br></div><div>Stephen</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 5, 2014 at 10:25 AM, Jorge Miramontes <span dir="ltr"><<a href="mailto:jorge.miramontes@rackspace.com" target="_blank">jorge.miramontes@rackspace.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:12px;font-family:Helvetica,sans-serif">
<div>
<div>
<div>Thanks German,</div>
<div><br>
</div>
<div>It looks like the conversation is going towards using the HAProxy stats interface and/or iptables. I just wanted to explore logging a bit. That said, can you and Stephen share your thoughts on how we might implement that approach? I'd like to get a spec
out soon because I believe metric gathering can be worked on in parallel with the rest of the project. In fact, I was hoping to get my hands dirty on this one and contribute some code, but a strategy and spec are needed first before I can start that ;)</div>
<div><br>
</div>
<div>
<div>Cheers,</div>
<div style="font-family:Calibri,sans-serif"><font color="#000000"><font face="Calibri"><span style="font-size:14px">--Jorge</span></font></font></div>
</div>
</div>
</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt"><span>
<span style="font-weight:bold">From: </span><Eichberger>, German <<a href="mailto:german.eichberger@hp.com" target="_blank">german.eichberger@hp.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>"OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>><br>
</span><span style="font-weight:bold">Date: </span>Wednesday, November 5, 2014 3:50 AM<div><div><br>
<span style="font-weight:bold">To: </span>"OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [openstack-dev] [Neutron][LBaaS][Octavia] Usage Requirements<br>
</div></div></div><div><div>
<div><br>
</div>
<blockquote style="BORDER-LEFT:#b5c4df 5 solid;PADDING:0 0 0 5;MARGIN:0 0 0 5">
<div>
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31,73,125);font-family:Calibri,sans-serif">Hi Jorge,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31,73,125);font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31,73,125);font-family:Calibri,sans-serif">I am still not convinced that we need to use logging for usage metrics. We can also use the haproxy stats interface (which the haproxy team is willing
to improve based on our input) and/or iptables as Stephen suggested. That said this probably needs more exploration.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31,73,125);font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31,73,125);font-family:Calibri,sans-serif">From an HP perspective the full logs on the load balancer are mostly interesting for the user of the loadbalancer – we only care about aggregates
for our metering. That said we would be happy to just move them on demand to a place the user can access.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31,73,125);font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31,73,125);font-family:Calibri,sans-serif">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31,73,125);font-family:Calibri,sans-serif">German<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31,73,125);font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31,73,125);font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10pt;font-family:Tahoma,sans-serif">From:</span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif"> Jorge Miramontes [<a href="mailto:jorge.miramontes@RACKSPACE.COM" target="_blank">mailto:jorge.miramontes@RACKSPACE.COM</a>]
<br>
<b>Sent:</b> Tuesday, November 04, 2014 8:20 PM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<br>
<b>Subject:</b> Re: [openstack-dev] [Neutron][LBaaS][Octavia] Usage Requirements<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif">Hi Susanne,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif">Thanks for the reply. As Angus pointed out, the one big item that needs to be addressed with this method is network I/O of raw logs. One idea to mitigate
this concern is to store the data locally for the operator-configured granularity, process it and THEN send it to cielometer, etc. If we can't engineer a way to deal with the high network I/O that will inevitably occur we may have to move towards a polling
approach. Thoughts?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif">Cheers,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif">--Jorge<u></u><u></u></span></p>
</div>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
</div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11pt;color:black;font-family:Calibri,sans-serif">From:
</span></b><span style="font-size:11pt;color:black;font-family:Calibri,sans-serif">Susanne Balle <<a href="mailto:sleipnir012@gmail.com" target="_blank">sleipnir012@gmail.com</a>><br>
<b>Reply-To: </b>"OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>><br>
<b>Date: </b>Tuesday, November 4, 2014 11:10 AM<br>
<b>To: </b>"OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>><br>
<b>Subject: </b>Re: [openstack-dev] [Neutron][LBaaS][Octavia] Usage Requirements<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
</div>
<blockquote style="border:none;border-left:solid #b5c4df 4.5pt;padding:0in 0in 0in 4.0pt;margin-left:3.75pt;margin-right:0in">
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif">Jorge
<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif">I understand your use cases around capturing of metrics, etc. <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif">Today we mine the logs for usage information on our Hadoop cluster. In the future we'll capture all the metrics via ceilometer.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif">IMHO the amphorae should have an interface that allow for the logs to be moved to various backends such as an elastic search, hadoop HDFS, Swift, etc as well
as by default (but with the option to disable it) ceilometer. Ceilometer is the metering defacto for OpenStack so we need to support it. We would like the integration with Ceilometer to be based on Notifications. I believe German send a reference to that in
another email. The pre-processing will need to be optional and the amount of data aggregation configurable. <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif">What you describe below to me is usage gathering/metering. The billing is independent since companies with private clouds might not want to bill but still
need usage reports for capacity planning etc. Billing/Charging is just putting a monetary value on the various form of usage,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif">I agree with all points. <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10pt;color:black;font-family:Arial,sans-serif">> - Capture logs in a scalable way (i.e. capture logs and put them on a</span><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif">> </span><span style="font-size:10pt;color:black;font-family:Arial,sans-serif">separate scalable store somewhere so that it doesn't affect the amphora).</span><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10pt;color:black;font-family:Arial,sans-serif">> - Every X amount of time (every hour, for example) process the logs and</span><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif">> </span><span style="font-size:10pt;color:black;font-family:Arial,sans-serif">send them on their merry way to cielometer or whatever service an operator</span><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10pt;color:black;font-family:Arial,sans-serif">> will be using for billing purposes.</span><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif">"Keep the logs": This is what we would use log forwarding to either Swift or Elastic Search, etc.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><br>
</span><span style="font-size:10pt;color:black;font-family:Arial,sans-serif">>- Keep logs for some configurable amount of time. This could be anything</span><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif">> </span><span style="font-size:10pt;color:black;font-family:Arial,sans-serif">from indefinitely to not at all. Rackspace is planing on keeping them
for</span><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif">> </span><span style="font-size:10pt;color:black;font-family:Arial,sans-serif">a certain period of time for the following reasons:</span><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Arial,sans-serif">It looks like we are in agreement so I am not sure why it sounded like we were in disagreement on the IRC. I am not sure why but it sounded like you were talking
about something else when you were talking about the real time processing. If we are just taking about moving the logs to your Hadoop cluster or any backedn a scalable way we agree.</span><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10pt;color:black;font-family:Arial,sans-serif">Susanne</span><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif">On Thu, Oct 23, 2014 at 6:30 PM, Jorge Miramontes <<a href="mailto:jorge.miramontes@rackspace.com" target="_blank">jorge.miramontes@rackspace.com</a>> wrote:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif">Hey German/Susanne,<br>
<br>
To continue our conversation from our IRC meeting could you all provide<br>
more insight into you usage requirements? Also, I'd like to clarify a few<br>
points related to using logging.<br>
<br>
I am advocating that logs be used for multiple purposes, including<br>
billing. Billing requirements are different that connection logging<br>
requirements. However, connection logging is a very accurate mechanism to<br>
capture billable metrics and thus, is related. My vision for this is<br>
something like the following:<br>
<br>
- Capture logs in a scalable way (i.e. capture logs and put them on a<br>
separate scalable store somewhere so that it doesn't affect the amphora).<br>
- Every X amount of time (every hour, for example) process the logs and<br>
send them on their merry way to cielometer or whatever service an operator<br>
will be using for billing purposes.<br>
- Keep logs for some configurable amount of time. This could be anything<br>
from indefinitely to not at all. Rackspace is planing on keeping them for<br>
a certain period of time for the following reasons:<br>
<br>
A) We have connection logging as a planned feature. If a customer turns<br>
on the connection logging feature for their load balancer it will already<br>
have a history. One important aspect of this is that customers (at least<br>
ours) tend to turn on logging after they realize they need it (usually<br>
after a tragic lb event). By already capturing the logs I'm sure customers<br>
will be extremely happy to see that there are already X days worth of logs<br>
they can immediately sift through.<br>
B) Operators and their support teams can leverage logs when providing<br>
service to their customers. This is huge for finding issues and resolving<br>
them quickly.<br>
C) Albeit a minor point, building support for logs from the get-go<br>
mitigates capacity management uncertainty. My example earlier was the<br>
extreme case of every customer turning on logging at the same time. While<br>
unlikely, I would hate to manage that!<br>
<br>
I agree that there are other ways to capture billing metrics but, from my<br>
experience, those tend to be more complex than what I am advocating and<br>
without the added benefits listed above. An understanding of HP's desires<br>
on this matter will hopefully get this to a point where we can start<br>
working on a spec.<br>
<br>
Cheers,<br>
--Jorge<br>
<br>
P.S. Real-time stats is a different beast and I envision there being an<br>
API call that returns "real-time" data such as this ==><br>
<a href="http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#9" target="_blank">http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#9</a>.<br>
<br>
<br>
From: <Eichberger>, German <<a href="mailto:german.eichberger@hp.com" target="_blank">german.eichberger@hp.com</a>><br>
Reply-To: "OpenStack Development Mailing List (not for usage questions)"<br>
<<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>><br>
Date: Wednesday, October 22, 2014 2:41 PM<u></u><u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif">To: "OpenStack Development Mailing List (not for usage questions)"<br>
<<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>><br>
Subject: Re: [openstack-dev] [Neutron][LBaaS][Octavia] Usage Requirements<br>
<br>
<br>
>Hi Jorge,<br>
><br>
>Good discussion so far + glad to have you back<br>
>J<br>
><br>
>I am not a big fan of using logs for billing information since ultimately<br>
>(at least at HP) we need to pump it into ceilometer. So I am envisioning<br>
>either the<br>
> amphora (via a proxy) to pump it straight into that system or we collect<br>
>it on the controller and pump it from there.<br>
><br>
>Allowing/enabling logging creates some requirements on the hardware,<br>
>mainly, that they can handle the IO coming from logging. Some operators<br>
>might choose to<br>
> hook up very cheap and non performing disks which might not be able to<br>
>deal with the log traffic. So I would suggest that there is some rate<br>
>limiting on the log output to help with that.<br>
><br>
><br>
>Thanks,<br>
>German<br>
><br>
>From: Jorge Miramontes [mailto:<a href="mailto:jorge.miramontes@RACKSPACE.COM" target="_blank">jorge.miramontes@RACKSPACE.COM</a>]<br>
><br>
>Sent: Wednesday, October 22, 2014 6:51 AM<br>
>To: OpenStack Development Mailing List (not for usage questions)<br>
>Subject: Re: [openstack-dev] [Neutron][LBaaS][Octavia] Usage Requirements<br>
><br>
><br>
><br>
>Hey Stephen (and Robert),<br>
><br>
><br>
><br>
>For real-time usage I was thinking something similar to what you are<br>
>proposing. Using logs for this would be overkill IMO so your suggestions<br>
>were what I was<br>
> thinking of starting with.<br>
><br>
><br>
><br>
>As far as storing logs is concerned I was definitely thinking of<br>
>offloading these onto separate storage devices. Robert, I totally hear<br>
>you on the scalability<br>
> part as our current LBaaS setup generates TB of request logs. I'll start<br>
>planning out a spec and then I'll let everyone chime in there. I just<br>
>wanted to get a general feel for the ideas I had mentioned. I'll also<br>
>bring it up in today's meeting.<br>
><br>
><br>
><br>
>Cheers,<br>
><br>
>--Jorge<br>
><br>
><br>
><br>
><br>
><br>
><br>
>From:<br>
>Stephen Balukoff <<a href="mailto:sbalukoff@bluebox.net" target="_blank">sbalukoff@bluebox.net</a>><br>
>Reply-To: "OpenStack Development Mailing List (not for usage questions)"<br>
><<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>><br>
>Date: Wednesday, October 22, 2014 4:04 AM<br>
>To: "OpenStack Development Mailing List (not for usage questions)"<br>
><<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>><br>
>Subject: Re: [openstack-dev] [Neutron][LBaaS][Octavia] Usage Requirements<br>
><br>
><br>
><br>
>>Hi Jorge!<br>
>><br>
>><br>
>><br>
>>Welcome back, eh! You've been missed.<br>
>><br>
>><br>
>><br>
>>Anyway, I just wanted to say that your proposal sounds great to me, and<br>
>>it's good to finally be closer to having concrete requirements for<br>
>>logging, eh. Once this<br>
>> discussion is nearing a conclusion, could you write up the specifics of<br>
>>logging into a specification proposal document?<br>
>><br>
>><br>
>><br>
>>Regarding the discussion itself: I think we can ignore UDP for now, as<br>
>>there doesn't seem to be high demand for it, and it certainly won't be<br>
>>supported in v 0.5<br>
>> of Octavia (and maybe not in v1 or v2 either, unless we see real<br>
>>demand).<br>
>><br>
>><br>
>><br>
>>Regarding the 'real-time usage' information: I have some ideas regarding<br>
>>getting this from a combination of iptables and / or the haproxy stats<br>
>>interface. Were<br>
>> you thinking something different that involves on-the-fly analysis of<br>
>>the logs or something? (I tend to find that logs are great for non-real<br>
>>time data, but can often be lacking if you need, say, a gauge like<br>
>>'currently open connections' or something.)<br>
>><br>
>><br>
>><br>
>>One other thing: If there's a chance we'll be storing logs on the<br>
>>amphorae themselves, then we need to have log rotation as part of the<br>
>>configuration here. It<br>
>> would be silly to have an amphora failure just because its ephemeral<br>
>>disk fills up, eh.<br>
>><br>
>><br>
>><br>
>>Stephen<br>
>><br>
>><br>
>><br>
>>On Wed, Oct 15, 2014 at 4:03 PM, Jorge Miramontes<br>
>><<a href="mailto:jorge.miramontes@rackspace.com" target="_blank">jorge.miramontes@rackspace.com</a>> wrote:<br>
>>Hey Octavia folks!<br>
>><br>
>><br>
>>First off, yes, I'm still alive and kicking. :)<br>
>><br>
>>I,d like to start a conversation on usage requirements and have a few<br>
>>suggestions. I advocate that, since we will be using TCP and HTTP/HTTPS<br>
>>based protocols, we inherently enable connection logging for load<br>
>>balancers for several reasons:<br>
>><br>
>>1) We can use these logs as the raw and granular data needed to track<br>
>>usage. With logs, the operator has flexibility as to what usage metrics<br>
>>they want to bill against. For example, bandwidth is easy to track and<br>
>>can<br>
>>even be split into header and body data so that the provider can choose<br>
>>if<br>
>>they want to bill on header data or not. Also, the provider can determine<br>
>>if they will bill their customers for failed requests that were the fault<br>
>>of the provider themselves. These are just a few examples; the point is<br>
>>the flexible nature of logs.<br>
>><br>
>>2) Creating billable usage from logs is easy compared to other options<br>
>>like polling. For example, in our current LBaaS iteration at Rackspace we<br>
>>bill partly on "average concurrent connections". This is based on polling<br>
>>and is not as accurate as it possibly can be. It's very close, but it<br>
>>doesn't get more accurate that the logs themselves. Furthermore, polling<br>
>>is more complex and uses up resources on the polling cadence.<br>
>><br>
>>3) Enabling logs for all load balancers can be used for debugging,<br>
>>support<br>
>>and audit purposes. While the customer may or may not want their logs<br>
>>uploaded to swift, operators and their support teams can still use this<br>
>>data to help customers out with billing and setup issues. Auditing will<br>
>>also be easier with raw logs.<br>
>><br>
>>4) Enabling logs for all load balancers will help mitigate uncertainty in<br>
>>terms of capacity planning. Imagine if every customer suddenly enabled<br>
>>logs without it ever being turned on. This could produce a spike in<br>
>>resource utilization that will be hard to manage. Enabling logs from the<br>
>>start means we are certain as to what to plan for other than the nature<br>
>>of<br>
>>the customer's traffic pattern.<br>
>><br>
>>Some Cons I can think of (please add more as I think the pros outweigh<br>
>>the<br>
>>cons):<br>
>><br>
>>1) If we every add UDP based protocols then this model won't work. < 1%<br>
>>of<br>
>>our load balancers at Rackspace are UDP based so we are not looking at<br>
>>using this protocol for Octavia. I'm more of a fan of building a really<br>
>>good TCP/HTTP/HTTPS based load balancer because UDP load balancing solves<br>
>>a different problem. For me different problem == different product.<br>
>><br>
>>2) I'm assuming HA Proxy. Thus, if we choose another technology for the<br>
>>amphora then this model may break.<br>
>><br>
>><br>
>>Also, and more generally speaking, I have categorized usage into three<br>
>>categories:<br>
>><br>
>>1) Tracking usage - this is usage that will be used my operators and<br>
>>support teams to gain insight into what load balancers are doing in an<br>
>>attempt to monitor potential issues.<br>
>>2) Billable usage - this is usage that is a subset of tracking usage used<br>
>>to bill customers.<br>
>>3) Real-time usage - this is usage that should be exposed via the API so<br>
>>that customers can make decisions that affect their configuration (ex.<br>
>>"Based off of the number of connections my web heads can handle when<br>
>>should I add another node to my pool?").<br>
>><br>
>>These are my preliminary thoughts, and I'd love to gain insight into what<br>
>>the community thinks. I have built about 3 usage collection systems thus<br>
>>far (1 with Brandon) and have learned a lot. Some basic rules I have<br>
>>discovered with collecting usage are:<br>
>><br>
>>1) Always collect granular usage as it "paints a picture" of what<br>
>>actually<br>
>>happened. Massaged/un-granular usage == lost information.<br>
>>2) Never imply, always be explicit. Implications usually stem from bad<br>
>>assumptions.<br>
>><br>
>><br>
>>Last but not least, we need to store every user and system load balancer<br>
>>event such as creation, updates, suspension and deletion so that we may<br>
>>bill on things like uptime and serve our customers better by knowing what<br>
>>happened and when.<br>
>><br>
>><br>
>>Cheers,<br>
>>--Jorge<br>
>><br>
>><br>
>>_______________________________________________<br>
>>OpenStack-dev mailing list<br>
>><a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br>
>><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>>--<br>
>><br>
>>Stephen Balukoff<br>
>>Blue Box Group, LLC<br>
>><a href="tel:%28800%29613-4305%20x807" target="_blank">(800)613-4305 x807</a><br>
<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><u></u><u></u></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div></div></span>
</div>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><span></span>Stephen Balukoff
<br>Blue Box Group, LLC
<br><a href="tel:%28800%29613-4305%20x807" value="+18006134305" target="_blank">(800)613-4305 x807</a>
</div>
</div></div>