#musicbrainz-devel

/

      • ruaok
        I can tell. Its written in "proper" english. :)
      • ruaok composes a strong follow-up email
      • Swarup
        hi ruaok!
      • ruaok
        I dont think I really understood your last email to me. try me again, please?
      • Swarup
        basically when we shutdown all our webservice apps (apprx 5-6) on multiple hosts....response is fine now with single user test..
      • ruaok
        ah, I see.
      • we need to check some configs then to see where the bottle neck might be.
      • ah!
      • you're still running the mb_server inside the VM, right?
      • Swarup
        so i recall warp or someone mentioned on Friday chat..that MB server looks for it's clients that requests came from..
      • yes
      • and we've our webservice on top that connects to this mb server..
      • ruaok
        did you ever change the web server inside the VM?
      • because right now its using a dev server setup.
      • bitmap joined the channel
      • but since we're now actually deploying this, you ought to install nginx inside the VM and deploy the mb-server app inside that.
      • I think I may switch to this method for an upcoming release of the VM.
      • or at least allow both to be done easily.
      • Swarup
        change webserver? didn't get that..like what?
      • ruaok
        so, the VM comes setup with a catalyst based development server.
      • that isn't meant to handle more than 1-2 clients connecting to it.
      • Swarup
        ha ok..
      • ruaok
        so, we need to deploy a better web server inside the Vm that has more throughput.
      • Swarup
        no we didn't change on that side..only thing we changed was point to our own external postgres mb db host, and search server
      • ruaok
        have you ever used nginx?
      • ah, ok.
      • yeah, we need to tweak that then.
      • Swarup
        no ..but i can try..
      • ruaok
        all the hard stuff is done for you, since we deploy to nginx
      • log into the VM
      • then
      • apt-get install nginx
      • Swarup
        k
      • ruaok
        ping me when that's done so we can configure the server.
      • Leftmost joined the channel
      • Swarup
        i guess i need to be root ..right?
      • ruaok
        yep
      • sudo su -
      • password is musicbrainz, unless you folks changed that
      • Swarup
        done
      • ruaok
        cd /etc/nginx
      • hmmm.
      • all the config files are in ~musicbrainz/admin/nginx
      • so we're going to link to those files with symlinks.
      • gimme a sec while I fire up an instance.
      • Swarup
        ok
      • reosarevok
        More spam from http://gccalliance.org/ in the wiki
      • ocharles
        moin ruaok !
      • reosarevok considers mailing them and asking for it to stop :p
      • ruaok
        moin ocharles
      • nikki
        ruaok: "proper" english? does that mean I write in such a british way or that reosarevok can't speak english? :P
      • ruaok
        nikki: a little of both. :)
      • Leftmost
        reosarevok, you'll probably just get sucked into a cult if you do that. :P
      • reosarevok goes cry in the corner
      • reosarevok
        :p
      • ruaok
        awww, sorry reosarevok
      • reosarevok
        Leftmost, I can't, I'm already in the MB cult :p
      • Leftmost
        Where we worship consistent data.
      • reosarevok won't mail them because he doesn't want to get sent sect stuff daily anyway
      • reosarevok guesses they'd see it as a "PLZ SUBSCRIBE ME TO YR NEWZLETTA"
      • reosarevok
        ruaok: funnily enough, someone requested something pretty similar to what we were talking about on Style yesterday :p
      • (completely independently)
      • ruaok finally gets the VM to boot
      • ruaok
        Swarup: lets continue.
      • Swarup
        k
      • ruaok
        cd /etc/nginx/sites-available
      • Swarup
        done
      • ruaok
        ln -s ~musicbrainz/musicbrainz-server/admin/nginx/001-musicbrainz .
      • cd ../sites-enabled/
      • rm default
      • ln -s ../sites-available/001-musicbrainz .
      • warp
        ocharles: can you have another look at http://codereview.musicbrainz.org/r/1570/ ? I'd like to get that in master.
      • ocharles
        warp: okie doke
      • Swarup
        ruaok..done
      • ruaok
        Swarup:
      • cd ..
      • mv nginx.conf nginx.conf.default
      • Swarup
        done
      • ruaok
        that may be all we need to do, but I need to double check that. hold on
      • ln -s ~musicbrainz/musicbrainz-server/admin/nginx/mbserver-rewrites.conf .
      • zacd joined the channel
      • uh oh.
      • zacd
        Mmm?
      • ruaok
        the posse slowly rolls in.
      • hi zacd! :)
      • zacd
        Took me a while to run an extension cord outside the fence. Port 6667 is blocked on the office net.
      • ruaok
        lol
      • Swarup:
      • /etc/init.d/nginx stop
      • /etc/init.d/nginx start
      • kepstin-netbook
        zacd: freenode has a web irc client that just uses port 80.
      • ruaok
        ah, before you do that, stop the dev server, Swarup
      • Swarup
        ok
      • ruaok
        might be ok, since dev server runs on a different port, but still.
      • now if you go to the servers address you should get a 502 bad gateway error.
      • Swarup
        got this..probably some setup issue..
      • ../etc/init.d/nginx start Starting nginx: [emerg]: open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) configuration file /etc/nginx/nginx.conf test failed
      • zacd
        What're you guys trying to do, exactly?
      • Swarup
        setting up nginx on mb vm ..to handle throughput..
      • ruaok
        Swarup: ls /etc/nginx
      • zacd
        But like...
      • ruaok
        you should have a symlink from nginx.conf going to /home/musicbrainz/musicbrainz-server/admin/nginx/nginx.conf
      • zacd
        We're not running out of host resources from what I can tell...
      • Swarup
        ls /etc/nginx conf.d fastcgi_params koi-utf koi-win mbserver-rewrites.conf mime.types nginx.conf.default scgi_params sites-available sites-enabled uwsgi_params win-utf
      • zacd
        What are we running out of?
      • ruaok
        zacd: the server that ships with the VM is a dev server not setup for a great amount of throughput.
      • not sure of the exact thing we're running out of, but we were doing it wrong for this case.
      • so we're setting up nginx, to do it right.
      • then we can check to see the throughput. that should improve things a lot.
      • Swarup: cd /etc/nginx
      • ln -s ~musicbrainz/musicbrainz-server/admin/nginx/nginx.conf .
      • Swarup
        y on it
      • ruaok
        then try the start again
      • k
      • kepstin-laptop joined the channel
      • Swarup
        ../etc/init.d/nginx start Starting nginx: [emerg]: open() "/etc/nginx/site-name.conf" failed (2: No such file or directory) in /etc/nginx/sites-enabled/001-musicbrainz:3 configuration file /etc/nginx/nginx.conf test failed
      • ruaok
        ah, I think my vm is a bit behind the times.
      • Swarup
        should i add same sym link for it too..
      • ruaok
        that file isn't in git.
      • one sec.
      • ocharles
        warp: ship ship ship
      • warp
        ocharles: yay!
      • ruaok
        Swarup: create the file and have it contain only one line:
      • server_name musicbrainz.org;
      • Swarup
        k
      • ruaok
        thats for our server. put whatever valid DNS name you intent to use in there.
      • then restart
      • (nginx that is)
      • Swarup
        ../etc/init.d/nginx start Starting nginx: [warn]: duplicate MIME type "text/html" in /etc/nginx/sites-enabled/001-musicbrainz:16 [warn]: duplicate MIME type "text/html" in /etc/nginx/sites-enabled/001-musicbrainz:29 nginx.
      • warnings..is that ok..
      • ruaok
        yeah. I'll leave that to you to clean up. ;)
      • Swarup
        k
      • ruaok
        ok, we're half done.
      • apt-get install daemontools daemontools-run
      • Swarup
        done
      • ruaok
        cd /usr/local
      • mkdir musicbrainz-server
      • cd musicbrainz-server/
      • Swarup
        k
      • done
      • ruaok
        cp ~musicbrainz/musicbrainz-server/admin/nginx/service/run .
      • edit run
      • look for nproc
      • its set to 5
      • that is the number of processes to start
      • how much ram does the VM have?
      • Swarup
        done..command to check ram..let me see..
      • ruaok
        free
      • Swarup
        total used free shared buffers cached Mem: 1024968 617204 407764 0 105868 426012 -/+ buffers/cache: 85324 939644 Swap: 1044476 3800 1040676
      • ruaok
        that will also be a problem for you guys.