WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: haproxy  (Read 11604 times)

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
haproxy
« on: October 16, 2009, 01:19:54 PM »
Thanks to evofx for:

Code: [Select]
Title:          haproxy.tcz
Description:    HAProxy - Layer 7 Load Balancer
Version:        1.3.21
Author:         Willy Tarreau 
Original-site:  http://haproxy.1wt.eu/
Copying-policy: GPL v2
Size:           128KB
Extension_by:   evofx
Comments:       ipvs-2.6.29.1-tinycore is optional improve perfromance via tcp splicing.
This extension is PPI Compatible.

                HAProxy is a free, very fast and reliable solution offering high availability,
                load balancing, and proxying for TCP and HTTP-based applications.

                It is particularly suited for web sites crawling under very high loads while
                needing persistence or Layer7 processing. Supporting tens of thousands of
                connections is clearly realistic with todays hardware. Its mode of operation
                makes its integration into existing architectures very easy and riskless, while
                still offering the possibility not to expose fragile web servers to the Net.

Change-log:     2009/10/16 Original
Current:        2009/10/16 Original


Offline Adam

  • Full Member
  • ***
  • Posts: 121
Re: haproxy
« Reply #1 on: June 15, 2017, 11:00:45 PM »
Is HAProxy still available on TCL? It's good to have it in my TCL lab.

Quote
tc@box:~$ tce-load -wi haproxy.tcz
/usr/bin/tce-load: line 212: can't create /tmp/appserr: Permission denied
Downloading: haproxy.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
wget: server returned error: HTTP/1.1 404 Not Found
md5sum: haproxy.tcz.md5.txt: No such file or directory
Error on haproxy.tcz
/usr/bin/tce-load: line 273: can't create /tmp/appserr: Permission denied
tc@box:~$

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11618
Re: haproxy
« Reply #2 on: June 15, 2017, 11:46:36 PM »
Hi Adam
This extension announcement was for TC2. The TC4 repository contains the same extension as it was originally released.
Seeing as it has no dependencies, you could try downloading it from:
http://tinycorelinux.net/4.x/x86/tcz/haproxy.tcz
and see if it runs for you.

Offline Adam

  • Full Member
  • ***
  • Posts: 121
Re: haproxy
« Reply #3 on: June 16, 2017, 06:59:24 AM »
Hi Adam
This extension announcement was for TC2. The TC4 repository contains the same extension as it was originally released.
Seeing as it has no dependencies, you could try downloading it from:
http://tinycorelinux.net/4.x/x86/tcz/haproxy.tcz
and see if it runs for you.

Thanks Rich. It works  :)

Quote
tc@box:~$ wget http://tinycorelinux.net/4.x/x86/tcz/haproxy.tcz
Connecting to tinycorelinux.net (89.22.99.37:80)
haproxy.tcz          100% |******************************************************************************************************************|   144k  0:00:00 ETA
tc@box:~$
tc@box:~$ tce-load -i haproxy.tcz
/usr/bin/tce-load: line 212: can't create /tmp/appserr: Permission denied
haproxy.tcz: OK
tc@box:~$
tc@box:~$ haproxy
HA-Proxy version 1.3.21 2009/10/12
Copyright 2000-2009 Willy Tarreau <w@1wt.eu>

Usage : haproxy [-f <cfgfile>]* [ -vdVD ] [ -n <maxconn> ] [ -N <maxpconn> ]
        [ -p <pidfile> ] [ -m <max megs> ]
        -v displays version ; -vv shows known build options.
        -d enters debug mode ; -db only disables background mode.
        -V enters verbose mode (disables quiet mode)
        -D goes daemon
        -q quiet mode : don't display messages
        -c check mode : only check config files and exit
        -n sets the maximum total # of connections (2000)
        -m limits the usable amount of memory (in MB)
        -N sets the default, per-proxy maximum # of connections (2000)
        -p writes pids of all children to this file
        -de disables epoll() usage even when available
        -ds disables speculative epoll() usage even when available
        -dp disables poll() usage even when available
        -sf/-st [pid ]* finishes/terminates old pids. Must be last arguments.

tc@box:~$ haproxy -v
HA-Proxy version 1.3.21 2009/10/12
Copyright 2000-2009 Willy Tarreau <w@1wt.eu>

tc@box:~$

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: haproxy
« Reply #4 on: June 16, 2017, 09:41:32 AM »
posted to tc-8.x x86 repo

Offline Adam

  • Full Member
  • ***
  • Posts: 121
Re: haproxy
« Reply #5 on: June 16, 2017, 10:54:03 PM »
posted to tc-8.x x86 repo
Thanks Juanito. Other extension normally will be there even after reboot. But this is not the case for haproxy.
Please let me know how to keep it there permanently. Thanks

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11618
Re: haproxy
« Reply #6 on: June 16, 2017, 11:35:58 PM »
Hi Adam
My guess is that it's not listed in your  onboot.lst  file.

Offline Adam

  • Full Member
  • ***
  • Posts: 121
Re: haproxy
« Reply #7 on: June 16, 2017, 11:47:40 PM »
Hi Adam
My guess is that it's not listed in your  onboot.lst  file.

Yeah, initially it's not there. But even if I add it to onboot.lst and backup it, HAproxy apps is still not there after reboot.

BEFORE REBOOT
Quote
user@box:~$ haproxy
-sh: haproxy: not found
user@box:~$

user@box:~$ tce-load -i haproxy.tcz
/usr/bin/tce-load: line 212: can't create /tmp/appserr: Permission denied
haproxy.tcz: OK
user@box:~$

user@box:~$ haproxy -v
HA-Proxy version 1.3.21 2009/10/12
Copyright 2000-2009 Willy Tarreau <w@1wt.eu>

user@box:~$ sudo slocate haproxy
/home/user/haproxy.tcz
/usr/local/sbin/haproxy
/usr/local/share/man/man1/haproxy.1
/usr/local/tce.installed/haproxy
user@box:~$

user@box:~$ grep haproxy /mnt/sda1/tce/onboot.lst
haproxy.tcz
user@box:~$

AFTER REBOOT
Quote
user@box:~$ cat /mnt/sda1/tce/onboot.lst
openssh.tcz
file.tcz
slocate.tcz
tzdata.tcz
nmap.tcz
tcpdump.tcz
curl.tcz
iptables.tcz
haproxy.tcz
user@box:~$

user@box:~$ haproxy
-sh: haproxy: not found
user@box:~$

user@box:~$ sudo slocate haproxy
/home/user/haproxy.tcz
user@box:~$
« Last Edit: June 16, 2017, 11:51:59 PM by Adam »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: haproxy
« Reply #8 on: June 17, 2017, 03:08:53 AM »
That's because it's not in the correct directory. Loading it with "tce-load -i" worked because you were in the same directory, and it saw that.

Move it to your tce/optional directory.
The only barriers that can stop you are the ones you create yourself.

Offline Adam

  • Full Member
  • ***
  • Posts: 121
Re: haproxy
« Reply #9 on: June 25, 2017, 10:58:32 AM »
That's because it's not in the correct directory. Loading it with "tce-load -i" worked because you were in the same directory, and it saw that.

Move it to your tce/optional directory.
Thanks curaga.
I've tried to move it to your tce/optional directory, however the haproxy will be gone after reboot.