Skip to content

Instantly share code, notes, and snippets.

@tyrel86
Created June 17, 2012 05:44
Show Gist options
  • Save tyrel86/2943535 to your computer and use it in GitHub Desktop.
Save tyrel86/2943535 to your computer and use it in GitHub Desktop.
apache advise
*** tyrel86 [~463906b1@li114-241.members.linode.com] has joined #linode
*** Topic is: Linode Community Support | http://www.linode.com/ | Linode Birthday Giveaway! - http://bit.ly/LVZ36y
*** Topic set by ChanServ!services@services.oftc.net [Sat Jun 16 19:27:26 2012]
*** tyrel86 cnasal NateCup MagiC3PO pharaun Defenestrator Nemykal danblack choonming Austinh100 KHobbits_ Dreamer3 brambles tparker eyepulp gadams|away NdFeB lsabota sandeep wrf Daevien jeremyb @restelow Lydia JshWright staticsafe rsdehart tacticus encode dopey_ dan64 nenolod monokrome ekes ChatLeper solipsist minerale G jacob Pici thegodlikehobo EugeneKay Aka danieldg jonas__ WindPower @deaton Badgerer rasengan @stan_theman bss peper avenj Hydroxide eblack lkb_ array
*** auraka dhunter tharkun darkex Peng Eman_ randallman jvaughan_ bradoaks warewolf HalJorda1 scorche|1h eronel jtsage BlandSauce gmcharlt u3q jchen JDLSpeedy vinic ghostbar elky cooldude Drone4four waltman bmn vervain aziwoqpd Sputnik7 rmayorga Justasic pjkh HockeyInJune Chris___ sivy KyleXY SamWhited karstensrage blithe brcc cwillu_at_work RiverRat DrJ HoopyCat retro|blah Kamilion-Work krwightm skcin7 MJCS Ehtyar Edgeman Dataforce swaj dubenstein squircle techhelper1
*** michael2572 mallorn1 @psandin sorressean justinholmes mveplus vraa_ mdcollins XDS2010 duckydan hfb trippeh brandont lbotos kbrantley jenner bdube ftc rHn synapt triplei fisted tomaw nisstyre amoe gerryvdm descender|2 arooni-mobile agrajag scorche dhubbard Satellite MissionCritical bzzzz_ shedammit mcinerney squinky Hercules ybit ajmitch Raynes Aexoden praetorian carnage Vadtec sirpengi chesty zero kevin amitz derzok_ Gnewt Damian_ pleia2 @tasaro cdlu thorrr ivan`
*** decklin dinodj @heckman SirFunk @Praefectus @akerl @ericoc danstoner Zygo Stian alnr Schroede1 fulg0re fo0bar pygmalion daj mbreslin leto tychoish Katana PrgmrBill TheFirst brianok Deathvalley122 thekev kenyon @irgeek VladGh Tom39Away sontek materdaddy radhermit purrdeta Alan linbot Pryon bd_ jkwood Kyhwana BrianHV joe262 Smark[Gone] tonyyarusso windsurfer dr_jkl SleePy X-LP devilspgd TingPing brainproxy raymohi pixl Kamilion Dianoga Musfuut Deathspawn Turl A-KO
*** Guest3724 StevenK cps asedeno Typo LateralOctober zivester Nivex notsquinky blindwaves Chowzzf_ SpaceHobo qmr bfrog @caker ttaylor maulina Kyh FloodServ cornishpasty darkbeholder phlux bliblok SirSquidness hume Jonis js_ iylea SubOracle Peterman GLaDOSDan Tanja84dk|ZNC graq dominikh MrYiff kethry zibri m0zziter Consdale KingTarquin tonym MrGeneral mac-mini branko cats JStoker Myon Ovi naxxfish Zol l0uis_ martin- pelle jonsowman spacefinn marius Dave tozz phyber
*** rails jarryd nrltd SNy rnowak marcel RichGuk Whoop arsovik__ bjorne gerryvdm__ hawk Kuukunen TheMike zaytsev sxk eshlox niftylettuce XReaper meskarune Null_ misfit1 jdub_ Louis internat taquter Tea jwayne mpr BP{k} MaZ- wgas nicar hipsters1apfight Hobbsee Frools Toumaz JSharp kwmonroe Commodore jspiros Dokujisan HEX3H ryan-c|w N1JER SelfishMan_ dwfreed MrPPS v0lksman Dragon cereal jotamjr Torenn Yaakov MajObviousman nickzxcv Karrde imMute Josh cafuego nb CompWizrd
*** zox pauls dzho jwbernin mwalling chuck mkasu danp Adam- Guest1562 klono Beirdo_ JoeK notzach cruxeternus jrib genehack jsamuel ghoti_ shakr porkus jscholl Bry8Star-{GB Goatbert ryanc_ Solver Tormin dcraig jico AlexC_ Randall Caelum bob- @mikegrb rmyers errr_ HIghoS_ fikle markcerv_ hpham numk_ Bullrush Alucard jetlag vsync bigjust path komrade piney0 d1b zzzcn cnasal_ Jaguar HarryS m0 heidi p-h-i-l-i-p MartyniP Ttech tres HedgeMage Sophira slackmagic syntaxman
*** widox
*** Channel created on Mon Sep 15 22:59:51 2008
<tyrel86> Hello any one feel like filling me on some questions regarding launching a production rails app
<tyrel86> I am using apache with mod rails I was wondering what good settings are for a 256mb linode as far as server instances and rails instances or better yet if there is any articles any one would recomend to get the most out of my server
<tyrel86> without over working it
<heckman> You mean 512mb Linode?
<rnowak> 256mb linode? 256 millibit?
<tyrel86> yes sorry
<tyrel86> 512
<Kyhwana> mostly disabling keep alives and setting your maxclients to ~10-20 or so, Ithink
<heckman> Two big things you can do is turn off KeepAlives in Apache2, as well as drop the number of threads/workers and MaxClients
<rnowak> heckman: where do I sign up for one of these 512 millibit linodes?
<heckman> ninja'd by less than a second. :(
<heckman> mB
<rnowak> ok, where do I sign up for one of these 512 millibyte linodes?
<tyrel86> did linode switch 256 to 512 for the min recently it feels like I signed up for 256
<Kyhwana> 256 was ages ago wasnt it?
<tyrel86> Honestly I have no idea but I looked at my dashboard and mine is 512 I just remember siging up for 256 maybe that was slice host
<tyrel86> so disable keeps alive does that mean apache has to reboot rails every time a new request comes in?
<bdube> it does not mean that
<SleePy> I've had my node for 2 years, and its been 512 the whole time.
<heckman> No. A KeepAlive means Apache2 sits waiting for that client to make another request.
<SleePy> So not recently :)
<heckman> Apache2 cannot handle a new connection until that other one closes. If you disable KeepAlives, Apache2 can just move on to the next request.
<rnowak> tyrel86: are you sure you're ready for production? (:
<tyrel86> no I am preparing myself for it ahead of time
<rnowak> that's good!
<XReaper> giveaway = yawn
<XReaper> :P
<XReaper> hell, it's something
<XReaper> but: may have to script hide that timer banner
<XReaper> :D
<EugeneKay> Just use a style
*** cnasal [~cnasal@camnallc-1-pt.tunnel.tserv13.ash1.ipv6.he.net] has quit [Quit: cnasal]
<XReaper> mmm
<tyrel86> So rnowak do you have any recontaminations for a competent ruby and rails programmer and database expert who is almost completely ignorant in server configuration before going production?
<rnowak> tyrel86: sorry, couldn't finish reading that when I got to "database expert who is almost completely ignorant in server configuration"
<tyrel86> lol I mean like Apache I am ignorent in Apache
<mikegrb> lulz
<rnowak> good luck? yeah, that. Good luck.
<tyrel86> you too hugh?
<SleePy> ignorent in ignorance?
<rnowak> SleePy: don't be so ignorent man
<tyrel86> wow technical to philosophic in no time I like you guys :) so thanks for the reconsiderations everyone.
<SleePy> tyrel86: Unless I read it wrong though, I see it as your asking for an Apache expert to be ignorant in setting up Apache.
<tyrel86> Looking back on it now I think you might be right SleePy
<rnowak> tyrel86: it is not you specifically, I just laugh at all "database experts" (which can be seen from a mile away that they really aren't)
<rnowak> but, have a cookie for trying to fix your issues before going production!
<tyrel86> well thanks for the cookie. And by expert I mean that I draw up and put alot of thought into it before I code. Granted I am probably conversing with people well beyond my skill level but I aspire to reach your ranks
<rnowak> knowing how to throw up a schema with some thought process rather than vomiting it out like most do, does not an expert make -- but it does make one better than most horrible "experts" out there
* SleePy is better than most horrible "experts"
<tyrel86> certainly better than word presses lets put everything into a post table and have a column called post type
<tyrel86> *wordpress
<XReaper> lol
<mikegrb> lulz
<SleePy> Drupal also does that
<XReaper> mediawiki puts everything in a 'text' table
<XReaper> i have a 6GB text table
<XReaper> :D
<XReaper> full of spam
<rnowak> XReaper: could you design something better?
<EugeneKay> Sounds very web scale
<rnowak> no? shut up.
<XReaper> It makes sense to put posts in a post table :/
<SleePy> Well for MW, its designed everything to be a wiki page, so its understandable somewhat
<rnowak> they've got a lot of problems, the design choice for everything to be a wiki page is the least of them
<SleePy> But some things such as a CMS that has a message board/forum extension uses the same tables as the CMS instead of designing their own is what gets me
<rnowak> SleePy: "let's keep it simple" *cue horror music*
<XReaper> Hopefully there is an easy way to drop all user pages...but tbqh i'd rather just have it set up flat
<SleePy> And then putting all categories/tags/etc into the same table.. UGH!
<XReaper> that could get messy
<tyrel86> sleepy thats what got me too. all of the plugins I installed that should have had a new table just put their objects in the post table with a different post type
<rnowak> please stop, I've not had enough coffee this morning to be reading this
<tyrel86> lol so any way before I through out the phrase database expert when I should have non database moron. What I am really asking is I am getting to a point of finishing my first releasable rails app and wanted to make sure I had apache configured corectly so I don't end up upping my
<mikegrb> lulz
<SleePy> Some people have a bright idea of using text or varchar for everything. Rather than storing them as ints, which are much faster for comparisons
<rnowak> this is on the scale of requring at least 6 espressos before being bearable
<SleePy> rnowak: its only 1 hour and 15 minutes until midnight for me :P So a long way from coffee
<tyrel86> same here bed time before coffee
<rnowak> tyrel86: it is a bit difficult to make that open suggestions -- if you had more specific questions, I am sure there's a number of us here that could throw you some information
<tyrel86> al-right I will come back with better questions later. Thank you for humouring me and nice meeting you all.
<heckman> Catch you around!
<rnowak> (I for one would not host it in apache, but... (: )
<SleePy> I didn't think I was funny
<rnowak> SleePy: you're always hilarious
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment