-
Leo_Verto
by the way, has anyone read that article about nginx tcp load balancing being added to the open source version?
2015-04-24 11426, 2015
-
kepstin-laptop
ruaok, possibly, yeah
2015-04-24 11451, 2015
-
ruaok
2015-04-24 11421, 2015
-
kepstin-laptop
address already in use? that's an odd error.
2015-04-24 11433, 2015
-
ruaok
yes.
2015-04-24 11451, 2015
-
ruaok
especially since most of those ips doesn't exist.
2015-04-24 11427, 2015
-
kepstin-laptop
is there something in the config that's listening to *?
2015-04-24 11459, 2015
-
ruaok
da fuq?
2015-04-24 11411, 2015
-
ruaok
that problem goes away and nginx starts fine after a chef provision.
2015-04-24 11421, 2015
-
ruaok
but right after boot. no go.
2015-04-24 11422, 2015
-
kepstin-laptop
i mean, is there anything in the nginx config with "listen 80" or "listen *:80"?
2015-04-24 11439, 2015
-
Leo_Verto
why would that bind addresses though?
2015-04-24 11408, 2015
-
kepstin-laptop
that shouldn't...
2015-04-24 11417, 2015
-
kepstin-laptop
ruaok, hmm, i wonder if nginx is being started twice
2015-04-24 11422, 2015
-
ruaok
conf/sites-available/default: listen 80;
2015-04-24 11427, 2015
-
kepstin-laptop
maybe the ubuntu init script *and* daemontools?
2015-04-24 11404, 2015
-
ruaok
shit, that is it.
2015-04-24 11411, 2015
-
ianmcorvidae
that's likely, if you haven't disabled the init-script one
2015-04-24 11418, 2015
-
ruaok
my script is supposed to removed those links.
2015-04-24 11450, 2015
-
ruaok
I bet the
2015-04-24 11459, 2015
-
ruaok
package "nginx"
2015-04-24 11402, 2015
-
ruaok
is installing them again.
2015-04-24 11413, 2015
-
CatQuest joined the channel
2015-04-24 11435, 2015
-
kepstin-laptop
yeah, the debian packages will be running 'update-rc.d' to make sure the rc.d symlinks are all present
2015-04-24 11452, 2015
-
Leo_Verto
o_O
2015-04-24 11413, 2015
-
ruaok
oh.
2015-04-24 11419, 2015
-
ruaok
I remove the K links, not the S links.
2015-04-24 11430, 2015
-
ruaok
what is the command to remove these links?
2015-04-24 11432, 2015
-
Leo_Verto
why not just use sudo update-rc.d -f nginx disable?
2015-04-24 11435, 2015
-
ruaok
I'm currently doing it by hand
2015-04-24 11437, 2015
-
ruaok
"hand"
2015-04-24 11448, 2015
-
ruaok
Leo_Verto: that :)
2015-04-24 11454, 2015
-
Leo_Verto
:D
2015-04-24 11418, 2015
-
kepstin-laptop
you might want remove, not disable
2015-04-24 11430, 2015
-
kepstin-laptop
otherwise it'll actually run the init script stop at boot
2015-04-24 11407, 2015
-
Leo_Verto
disable is pretty explicit though
2015-04-24 11418, 2015
-
ruaok
Leo_Verto that is pretty much what I want.
2015-04-24 11421, 2015
-
ruaok
ok, doing another reboot test.
2015-04-24 11431, 2015
-
ruaok
nginx, which is being managed to daemontools is not being started at boot time.
2015-04-24 11436, 2015
-
ruaok
starting it by hand and all is well.
2015-04-24 11407, 2015
-
ruaok
rvedotrc: hopefully my last question for you for tonight.
2015-04-24 11415, 2015
-
ruaok
the "down" file exists in the ngxing repo.
2015-04-24 11430, 2015
-
ruaok
which is preventing it from starting.
2015-04-24 11441, 2015
-
ruaok
but carl uses the same repo, yet nginx starts at startup.
2015-04-24 11448, 2015
-
ruaok
any idea what is with that?
2015-04-24 11429, 2015
-
rvedotrc
"down" means "when supervise starts, don't also start the service" - i.e. wait to "svc -u".
2015-04-24 11449, 2015
-
rvedotrc
So the question is, what is meant to control that service (svc -d/-u)?
2015-04-24 11404, 2015
-
rvedotrc
Probably haresources, I suspect.
2015-04-24 11422, 2015
-
rvedotrc
(or whatever it is under corosync)
2015-04-24 11432, 2015
-
rvedotrc
So... not sure if that helps. I haven't understood corosync etc yet.
2015-04-24 11441, 2015
-
ruaok
it does.
2015-04-24 11455, 2015
-
ruaok
which plays back into what kepstin-laptop was saying -- nginx should be managed by corosync.
2015-04-24 11422, 2015
-
ruaok
kepstin-laptop: how does one setup nginx to be started by corosync?
2015-04-24 11425, 2015
-
rvedotrc
That's the way I chose to set it up. Other ways may be possible.
2015-04-24 11459, 2015
-
kepstin-laptop
ruaok, it has a native nginx service module; i'm not sure if that's compatible with your config
2015-04-24 11442, 2015
-
ruaok
can we get corosync to issue the "svc -u" command as a generic command?
2015-04-24 11446, 2015
-
kepstin-laptop
2015-04-24 11456, 2015
-
kepstin-laptop
which apparently can manage stuff via daemontools
2015-04-24 11442, 2015
-
rvedotrc
You can probably use either the packaged nginx (/etc/nginx/nginx.conf or whatever), or daemontools. Probably not both.
2015-04-24 11420, 2015
-
ruaok
rvedotrc: yeah, we already disabled the packaged nginx startup. I want to continue to use daemontoosl
2015-04-24 11422, 2015
-
rvedotrc
If you wanted to you could do crazy stuff with binding to non-local IPs. But, I went for simple: use HA to add IP, then start nginx.
2015-04-24 11453, 2015
-
ruaok
rvedotrc: yep, and that seems to be the right way of doing things/
2015-04-24 11426, 2015
-
ruaok
kepstin-laptop: that script you linked -- how does that get tied into corosync?
2015-04-24 11434, 2015
-
kepstin-laptop
the native nginx module shipped with this stuff manages everything itself; just pass it the path to nginx and the nginx config
2015-04-24 11456, 2015
-
kepstin-laptop
ruaok, that would be dropped into /usr/lib/ocf/resource.d/ngyuki/daemontools
2015-04-24 11410, 2015
-
kepstin-laptop
then you'd configure it as 'crm configure primitive nginx ocf:ngyuki:daemontools params service_dir/path/to/nginx/service or so.
2015-04-24 11413, 2015
-
ruaok
"just pass it the path to nginx" -- from where?
2015-04-24 11428, 2015
-
kepstin-laptop
er, service_dir=...
2015-04-24 11446, 2015
-
kepstin-laptop
and add colocation and order constraints
2015-04-24 11413, 2015
-
kepstin-laptop
in crm configure: "colocation colo-ips-nginx +inf: webserver failover-ips" and "order order-ips-nginx Mandatory: failover-ips nginx"
2015-04-24 11452, 2015
-
ruaok
2015-04-24 11408, 2015
-
ruaok
that would be added to the corosync setup notes
2015-04-24 11439, 2015
-
kepstin-laptop
yeah, that looks right
2015-04-24 11424, 2015
-
ruaok
2015-04-24 11444, 2015
-
ruaok
the script was not executable.
2015-04-24 11454, 2015
-
ruaok
WARNING: nginx: default timeout 20s for stop is smaller than the advised 30
2015-04-24 11444, 2015
-
ruaok
woot!
2015-04-24 11451, 2015
-
ruaok
works after reboot!
2015-04-24 11400, 2015
-
ruaok
thanks kepstin-laptop and rvedotrc!
2015-04-24 11402, 2015
-
ruaok
<3
2015-04-24 11408, 2015
-
ruaok runs off for a bath
2015-04-24 11420, 2015
-
ariscop joined the channel
2015-04-24 11447, 2015
-
vanderhooft joined the channel
2015-04-24 11421, 2015
-
kepstin-laptop is off for the rest of the evening; send an email if you want to get in touch.
2015-04-24 11453, 2015
-
vanderhooft has left the channel
2015-04-24 11424, 2015
-
LordSputnik has left the channel
2015-04-24 11453, 2015
-
Nyanko-sensei joined the channel
2015-04-24 11409, 2015
-
Gentlecat joined the channel