Comments (6)
@jgeorge300 would you mind pasting your config please?
from haproxy.
Contents of my recipe's default.rb:
haproxy_install 'package' do
end
haproxy_config_global '' do
chroot '/var/lib/haproxy'
daemon true
maxconn 256
log '/dev/log local0'
log_tag 'WARDEN'
pidfile '/var/run/haproxy.pid'
stats_socket '/var/lib/haproxy/stats level admin'
tuning 'bufsize' => '262144'
end
haproxy_config_defaults '' do
mode 'http'
timeout connect: '5000ms',
client: '5000ms',
server: '5000ms'
end
haproxy_frontend 'http-in' do
bind '*:80'
default_backend 'servers'
end
haproxy_backend 'servers' do
server ['server1 127.0.0.1:8081 maxconn 32']
end
node.default['nexus3']['properties_variables'] = { port: '8081', args: '${jetty.etc}/jetty.xml,${jetty.etc}/jetty-http.xml,${jetty.etc}/jetty-requestlog.xml', context_path: '/' }
node.default['nexus3']['path'] = '/data'
node.default['nexus3']['home'] = '/data/nexus3'
node.default['nexus3']['data'] = '/data/sonatype-work/nexus3'
include_recipe 'nexus3'
cookbook_file '/etc/default/haproxy' do
source 'haproxy-default'
owner 'root'
group 'root'
mode '0644'
end
service 'haproxy' do
action :restart
end
from haproxy.
what's the output of haproxy -c /etc/haproxy/haproxy.cfg
from haproxy.
# haproxy -vc -f /etc/haproxy/haproxy.cfg
HA-Proxy version 1.4.24 2013/06/17
Copyright 2000-2013 Willy Tarreau <[email protected]>
# cat /etc/haproxy/haproxy.cfg
global
user haproxy
group haproxy
log /dev/log local0
log-tag WARDEN
chroot /var/lib/haproxy
daemon
quiet
stats socket /var/lib/haproxy/stats level admin
stats timeout 2m
pidfile /var/run/haproxy.pid
tune.bufsize 262144
defaults
timeout connect 5000ms
timeout client 5000ms
timeout server 5000ms
log global
mode http
balance roundrobin
option httplog
option dontlognull
option redispatch
stats uri /haproxy-status
frontend http-in
default_backend servers
bind *:80
maxconn 2000
backend servers
server server1 127.0.0.1:8081 maxconn 32
from haproxy.
Yeah this should be fixed by #200 Tested and works locally. Will push out a fix shortly.
from haproxy.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from haproxy.
Related Issues (20)
- Consider running circleci builds on tag instead of merge to master HOT 4
- systemd_unit property seems conflicting with "real" systemd_unit resource in 7.0.0 HOT 3
- Multiple bind lines are joined with extraneous colon HOT 11
- conf_cookbook not used in all resources HOT 1
- Leaves server unstable in very specific chef-run failure HOT 2
- Unable to upgrade to v8.1 HOT 2
- Would like to not set stats: "{ 'uri' => '/haproxy-status' }" in resources/config_defaults.rb? HOT 2
- Dangerfile should use failure instead of fail HOT 1
- Remove .rubocop.yml with Dangerfile HOT 1
- Update Changelog HOT 2
- Run latest cookstyle HOT 1
- Update builds to be parallel HOT 1
- Remove foodcritic files
- Haproxy frontend attributes are not showing up HOT 1
- Create Integration for haproxy 2.1 with fastcgi resource, and default install.
- When multiple of same resource are defined, spacing is off
- haproxy Chef-17 compatability
- haproxy_listen resource should have option param
- Source installation fails on Ubuntu 22.04 & Fedora
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haproxy.