Re: haproxy management web service ?

2015-11-18 Thread Ed Young
Pavlos,

I did mean a web service, but basically what I need is a programmatic way
to manage haproxy, and if it isn't a web service, I can always wrap it with
a web service.

My apologies for my python inexperience, so I need some clarification:
haproxyadmin is a python library that uses the stats socket provided by
haproxy, yes?
haproxytool is a python tool that uses the haproxyadmin library, yes?
haproxyadmin must be installed on the same server as haproxy, yes?
haproxytool must be installed on the same server as haproxy, yes?





On Tue, Nov 17, 2015 at 2:57 PM, Pavlos Parissis 
wrote:

> On 17/11/2015 10:37 μμ, Ed Young wrote:
> > I'm aware of the stats application and have it configured to manually
> > enable, disable and soft stop/start nodes.
> >
> > The UI is nice, but what I'm asking about is whether there is an web
> > service or API to enable/disable/soft stop/start nodes programmatically.
> >
>
> I assume you don't mean RESTful API, so I will mention
> github.com/unixsurfer/haproxyadmin which is a Python module which
> does most of operations supported over the stats socket.
> This github.com/unixsurfer/haproxytool is a tool which uses the
> mentioned library.
>
> Both are in Python and I have some plans to write a Go API, as a way to
> learn Golang, but it can take time before it is ready for public release.
>
> Cheers,
> Pavlos
>
>
>


-- 
- Ed


Re: haproxy management web service ?

2015-11-18 Thread Pavlos Parissis


On 18/11/2015 04:41 μμ, Ed Young wrote:
> Pavlos, 
> 
> I did mean a web service, but basically what I need is a programmatic
> way to manage haproxy, and if it isn't a web service, I can always wrap
> it with a web service. 
> 
> My apologies for my python inexperience, so I need some clarification: 
> haproxyadmin is a python library that uses the stats socket provided by
> haproxy, yes?

Yes.

> haproxytool is a python tool that uses the haproxyadmin library, yes? 

Yes.

> haproxyadmin must be installed on the same server as haproxy, yes? 

Yes.

> haproxytool must be installed on the same server as haproxy, yes? 

Yes.


Cheers,
Pavlos



signature.asc
Description: OpenPGP digital signature


Re: haproxy management web service ?

2015-11-18 Thread PiBa-NL
Technically its possible bind the stats socked on a tcp port iirc, do 
make sure to either bind it on 127.0.0.1 or firewall it properly.
I have no clue if those admin tools can use tcp connection to perform 
their administration tasks..


Op 18-11-2015 om 17:03 schreef Pavlos Parissis:


On 18/11/2015 04:41 μμ, Ed Young wrote:

Pavlos,

I did mean a web service, but basically what I need is a programmatic
way to manage haproxy, and if it isn't a web service, I can always wrap
it with a web service.

My apologies for my python inexperience, so I need some clarification:
haproxyadmin is a python library that uses the stats socket provided by
haproxy, yes?

Yes.


haproxytool is a python tool that uses the haproxyadmin library, yes?

Yes.


haproxyadmin must be installed on the same server as haproxy, yes?

Yes.


haproxytool must be installed on the same server as haproxy, yes?

Yes.


Cheers,
Pavlos






Re: haproxy management web service ?

2015-11-17 Thread Jeff Palmer
There is a built in web UI which offers that functionality

https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#stats admin

you can see a demo of it at http://demo.haproxy.org (the demo is
read-only, so you won't see the options to enable/disable backends and
such)



On Tue, Nov 17, 2015 at 3:10 PM, Ed Young  wrote:
> So there a web service api that would support bringing nodes up and Down
> programmatically for orchestration of upgrades and other maintenance events?
>
> --
> - Ed



-- 
Jeff Palmer
https://PalmerIT.net



haproxy management web service ?

2015-11-17 Thread Ed Young
So there a web service api that would support bringing nodes up and
Down programmatically for orchestration of upgrades and other maintenance
events?

-- 
- Ed


Re: haproxy management web service ?

2015-11-17 Thread Park, Sang-Min
Fyi, Eucalyptus implements AWS ELB api using haproxy as its backend.
---
Sang-Min Park – Software Engineer
HP Enterprise / Eucalyptus

From: Ed Young <e...@summitbid.com<mailto:e...@summitbid.com>>
Date: Tuesday, November 17, 2015 at 12:10 PM
To: "Haproxy@formilux.org<mailto:Haproxy@formilux.org>" 
<Haproxy@formilux.org<mailto:Haproxy@formilux.org>>
Subject: haproxy management web service ?

So there a web service api that would support bringing nodes up and Down 
programmatically for orchestration of upgrades and other maintenance events?

--
- Ed



Re: haproxy management web service ?

2015-11-17 Thread Jeff Palmer
Ed,


If you look into the "stats socket"  it has the same functionality as
the web interface.  you can interact with it via shell scripts and
similar.   I use this with ansible to take backends out of haproxy
before doing maintenance or updates.  so that may work for you.

If you are looking for like a restful API or similar,  you are going
to have to use a 3rd party solution as haproxy doesn't have this
capability built in.



On Tue, Nov 17, 2015 at 4:37 PM, Ed Young <e...@summitbid.com> wrote:
> I'm aware of the stats application and have it configured to manually
> enable, disable and soft stop/start nodes.
>
> The UI is nice, but what I'm asking about is whether there is an web service
> or API to enable/disable/soft stop/start nodes programmatically.
>
> That way when I have a release or some other maintenance, I can do it all
> from Jenkins, for example.
>
> Eucalyptus?
> is this what you mean?
> https://github.com/eucalyptus/load-balancer-servo
>
>
>
>
>
> On Tue, Nov 17, 2015 at 1:47 PM, Park, Sang-Min <sangmin.p...@hpe.com>
> wrote:
>>
>> Fyi, Eucalyptus implements AWS ELB api using haproxy as its backend.
>> ---
>> Sang-Min Park – Software Engineer
>> HP Enterprise / Eucalyptus
>>
>> From: Ed Young <e...@summitbid.com<mailto:e...@summitbid.com>>
>> Date: Tuesday, November 17, 2015 at 12:10 PM
>> To: "Haproxy@formilux.org<mailto:Haproxy@formilux.org>"
>> <Haproxy@formilux.org<mailto:Haproxy@formilux.org>>
>> Subject: haproxy management web service ?
>>
>> So there a web service api that would support bringing nodes up and Down
>> programmatically for orchestration of upgrades and other maintenance events?
>>
>> --
>> - Ed
>
>
>
>
> --
> - Ed



-- 
Jeff Palmer
https://PalmerIT.net



Re: haproxy management web service ?

2015-11-17 Thread Pavlos Parissis
On 17/11/2015 10:37 μμ, Ed Young wrote:
> I'm aware of the stats application and have it configured to manually
> enable, disable and soft stop/start nodes. 
> 
> The UI is nice, but what I'm asking about is whether there is an web
> service or API to enable/disable/soft stop/start nodes programmatically. 
> 

I assume you don't mean RESTful API, so I will mention
github.com/unixsurfer/haproxyadmin which is a Python module which
does most of operations supported over the stats socket.
This github.com/unixsurfer/haproxytool is a tool which uses the
mentioned library.

Both are in Python and I have some plans to write a Go API, as a way to
learn Golang, but it can take time before it is ready for public release.

Cheers,
Pavlos




signature.asc
Description: OpenPGP digital signature


Re: haproxy management web service ?

2015-11-17 Thread Ed Young
I'm aware of the stats application and have it configured to manually
enable, disable and soft stop/start nodes.

The UI is nice, but what I'm asking about is whether there is an web
service or API to enable/disable/soft stop/start nodes programmatically.

That way when I have a release or some other maintenance, I can do it all
from Jenkins, for example.

Eucalyptus?
is this what you mean?
https://github.com/eucalyptus/load-balancer-servo





On Tue, Nov 17, 2015 at 1:47 PM, Park, Sang-Min <sangmin.p...@hpe.com>
wrote:

> Fyi, Eucalyptus implements AWS ELB api using haproxy as its backend.
> ---
> Sang-Min Park – Software Engineer
> HP Enterprise / Eucalyptus
>
> From: Ed Young <e...@summitbid.com<mailto:e...@summitbid.com>>
> Date: Tuesday, November 17, 2015 at 12:10 PM
> To: "Haproxy@formilux.org<mailto:Haproxy@formilux.org>" <
> Haproxy@formilux.org<mailto:Haproxy@formilux.org>>
> Subject: haproxy management web service ?
>
> So there a web service api that would support bringing nodes up and Down
> programmatically for orchestration of upgrades and other maintenance events?
>
> --
> - Ed
>



-- 
- Ed


Re: haproxy management web service ?

2015-11-17 Thread Ed Young
Ok, thanks!

I just built and installed socat, and I'll check out haproxyadmin as well.

I've got a few golang irons in the fire for the same reason, so let me know
if you make some progress.

Thanks again.

On Tue, Nov 17, 2015 at 2:57 PM, Pavlos Parissis 
wrote:

> On 17/11/2015 10:37 μμ, Ed Young wrote:
> > I'm aware of the stats application and have it configured to manually
> > enable, disable and soft stop/start nodes.
> >
> > The UI is nice, but what I'm asking about is whether there is an web
> > service or API to enable/disable/soft stop/start nodes programmatically.
> >
>
> I assume you don't mean RESTful API, so I will mention
> github.com/unixsurfer/haproxyadmin which is a Python module which
> does most of operations supported over the stats socket.
> This github.com/unixsurfer/haproxytool is a tool which uses the
> mentioned library.
>
> Both are in Python and I have some plans to write a Go API, as a way to
> learn Golang, but it can take time before it is ready for public release.
>
> Cheers,
> Pavlos
>
>
>


-- 
- Ed


Re: haproxy management web service ?

2015-11-17 Thread Park, Sang-Min
That is just one piece of overall software.
So Eucalyptus is  the AWS-compatible private cloud and ELB is the 
implementation of AWS ELB on top of haproxy.
To use it, you need to install Eucalyptus on 1 or multiple machines and haproxy 
will be running inside the VMs.

Depending on your use-case, it may be a good fit or over-kill. For example, 
applications should be running the VMs.
If you have AWS experience and plan to run multiple loadbalancers, then you can 
give it a try.
Eucalyptus covers 100% of ELB APIs, which covers life-cycle management, backend 
registration, SSL, etc.
---
Sang-Min Park – Software Engineer
HP Enterprise

From: Ed Young <e...@summitbid.com<mailto:e...@summitbid.com>>
Date: Tuesday, November 17, 2015 at 1:37 PM
To: "Haproxy@formilux.org<mailto:Haproxy@formilux.org>" 
<Haproxy@formilux.org<mailto:Haproxy@formilux.org>>
Subject: Re: haproxy management web service ?

I'm aware of the stats application and have it configured to manually enable, 
disable and soft stop/start nodes.

The UI is nice, but what I'm asking about is whether there is an web service or 
API to enable/disable/soft stop/start nodes programmatically.

That way when I have a release or some other maintenance, I can do it all from 
Jenkins, for example.

Eucalyptus?
is this what you mean?
https://github.com/eucalyptus/load-balancer-servo





On Tue, Nov 17, 2015 at 1:47 PM, Park, Sang-Min 
<sangmin.p...@hpe.com<mailto:sangmin.p...@hpe.com>> wrote:
Fyi, Eucalyptus implements AWS ELB api using haproxy as its backend.
---
Sang-Min Park – Software Engineer
HP Enterprise / Eucalyptus

From: Ed Young 
<e...@summitbid.com<mailto:e...@summitbid.com><mailto:e...@summitbid.com<mailto:e...@summitbid.com>>>
Date: Tuesday, November 17, 2015 at 12:10 PM
To: 
"Haproxy@formilux.org<mailto:Haproxy@formilux.org><mailto:Haproxy@formilux.org<mailto:Haproxy@formilux.org>>"
 
<Haproxy@formilux.org<mailto:Haproxy@formilux.org><mailto:Haproxy@formilux.org<mailto:Haproxy@formilux.org>>>
Subject: haproxy management web service ?

So there a web service api that would support bringing nodes up and Down 
programmatically for orchestration of upgrades and other maintenance events?

--
- Ed



--
- Ed