Hey there folks- I''m happy to announce the first useable release of my new pocket- framework Merb. Merb is a mongrel handler with built in controller and view templating with erb. It has a nice routing system similar to rails but much simpler. It uses some of the code from the camping handler and the rails handler and then some of its own secret sauce to form imho a nice fast little framework. ActiveRecord is supported as shown in the sample app. Merb does not use cgi.rb at all(yay!) but can handle file uploads very well. See the sample app. And it can process concurrent file uploads without blocking. Merb also supports the X-SENDFILE header so you can set that header to a path to a file in your controller and then mongrel will serve it directly and your controller can continue on to the next request. Merb is a pet project of mine but was born out of real life need. I am using it in combination with rails apps that need a lot of file uploads or need to serve some dynamic pages faster then rails will allow. Right now Merb performs very well for a dynamic ruby framework thanks to mongrel being very fast when it doesn''t have the Rails Albatross ? on its back. Serving a dynamic templated page thru merb routing and controller with 10 ActiveRecord objects being listed out in the view, merb clocks in at 400req/sec on my macbook and a bit better on a real server. Static files are served as fast as mongrel can. I am using this along side a rails app by rewriting requests to a suburl to the merb mongrel like /foo -> merb handler. I am investigating making it possible to mount merb at a url in mongrel itself along side a rails app but I have to do more testing to see how that affects everything. If you want to play along at home you can do this to get a quick start: $ sudo gem install merb $ gem unpack merb $ cd merb-0.0.3/examples/sample_app # edit the conf/merb_init.rb to add your database password info. # then add a posts table to your db with a title and body column. $ merb start -t Then you can browse to these urls to play around. http://localhost:4000/posts/new or http://localhost:4000/posts/list or http://localhost:4000/uploads/start Here are the relevant links if you want to get involved with Merb development. http://rubyforge.org/frs/?group_id=2383 http://merb.devjavu.com/ http://svn.devjavu.com/merb http://brainspl.at/articles/2006/10/15/merb-gets-cool-routes-and-file- uploads Keep in mind that Merb is only a week or two old and is changing fast! If you want to get in on the ground floor and help me add to the base system then you are most welcome. On the other hand, if Merb kills your children I am not responsible ;) Thanks for playing! Cheers- -- Ezra Zygmuntowicz -- Lead Rails Evangelist -- ez at engineyard.com -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273)
> Merb is a pet project of mine but was born out of real life need. I > am using it in combination with rails apps that need a lot of file > uploads or need to serve some dynamic pages faster then rails will > allow. Right now Merb performs very well for a dynamic ruby framework > thanks to mongrel being very fast when it doesn''t have the Rails > Albatross ? on its backdid you find performance issues with camping? this sounds quite similar. but i will check it out anywyas (praobly won''t port my apps from camping to merb, unless it has some cool advantages like built in DRb for automatic-scaling and nice background-proces integration
On Oct 17, 2006, at 5:22 PM, carmen wrote:>> Merb is a pet project of mine but was born out of real life need. I >> am using it in combination with rails apps that need a lot of file >> uploads or need to serve some dynamic pages faster then rails will >> allow. Right now Merb performs very well for a dynamic ruby framework >> thanks to mongrel being very fast when it doesn''t have the Rails >> Albatross ? on its back > > did you find performance issues with camping? this sounds quite > similar. but i will check it out anywyas (praobly won''t port my > apps from camping to merb, unless it has some cool advantages like > built in DRb for automatic-scaling and nice background-proces > integrationNope I love camping, its great! But I have actually wanted my own framework for a little while now. So when I had a need for the file uploads I started out to just write myself a simple mongrel handler for doing uploads. But then it became fun and I continued on. Now its really starting to shape up. I love camping but I wanted things my own way so I built it. Cheers- -- Ezra Zygmuntowicz -- Lead Rails Evangelist -- ez at engineyard.com -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273)
David H Dennis
2006-Oct-18 03:04 UTC
[Mongrel] Anyone have issues with the Comcast toolbar?
I have a Mongrel cluster balanced using ''balance'' at http:// www.amazing.com/ . This morning, I got reports from people saying they could not access the site. They sent me a very odd looking error report, which appears to be from Comcast Cable. The error page has Google ads in it that were associated with my domain. (Until I put up my existing social networking site, I had a eccentric personal web page which talked about Mercedes-Benz automobiles and digital video, among other subjects; the ads were mainly Mercedes and digital video-related). The strange thing is that I asked them to do a nslookup, and they came up with my IP. When I asked them to type the IP into their browser, the same error page came up (although I didn''t ask them about the ads.) However, pinging to the IP or web address works fine. And if I telnet to port 80, I get a connection. The domain amazing.amazing.com, where I have my old personal site up, works normally. It''s served by Apache. amazing.com is served by Mongrel. This made me wonder if maybe the Comcast toolbar mangles requests in a way Mongrel doesn''t like? The alternative is to think that Comcast cares enough about my still brand new low-traffic web site to want to bother blocking it. The site is social networking and does not allow sexual material due to the terms of Google ads. A guy came and posted some sex images which were promptly removed but I suppose it''s possible they were noticed. Anyone else have similar issues, and if so, how did you work around them or find out what they were? Many thanks. Best D For reference, here''s the text of the Comcast error message: Sorry. We can''t find www.amazing.com Try retyping the URL in the browser address bar above. Or, search the Web. Search the Web: Did you mean: www.alazing.com? Sponsored Links Used Mercedes-Benz SL 320 www.CarsDirect.com Find a Used Mercedes In Your Area 400,000 Listings - Updated Daily. Mercedes Benz E300dt www.mbusa.com/pre-owned Search Inventory, Get Warranty Info & More at the Official CPO Site! Canon XH-G1 www.Everyprice.com Find the Right Price! Compare Shops & Purchase Online - Quick & Easy. Powered by Google Web Search Results Amazing Space Collection of web-based activities designed for classroom use, but made available for everyone to enjoy. http://amazing-space.stsci.edu/ - 11k - Cached - Similar pages Amazing Facts -Christian Media Ministry Free Bible Prophecy Lessons; Millennium of Prophecy TV program; Bible answers live radio program; Christian books, Christian audio and video products; ... http://www.amazingfacts.org/ - 22k - Cached - Similar pages Environment Web Directory shortcut to Agriculture - Horticulture, Farming... Animals - Animal Rights, Humane Society... Arts - Art, Music, Photography... ... http://www.webdirectory.com/ - 13k - Cached - Similar pages
On Tue Oct 17, 2006 at 11:04:08PM -0400, David H Dennis wrote:> I have a Mongrel cluster balanced using ''balance'' at http:// > www.amazing.com/ . > > This morning, I got reports from people saying they could not access > the site. They sent me a very odd looking error report, which > appears to be from Comcast Cable. The error page has Google ads in > it that were associated with my domain. (Until I put up my existing > social networking site, I had a eccentric personal web page which > talked about Mercedes-Benz automobiles and digital video, among other > subjects; the ads were mainly Mercedes and digital video-related). > > The strange thing is that I asked them to do a nslookup, and they > came up with my IP. When I asked them to type the IP into their > browser, the same error page came up (although I didn''t ask them > about the ads.) However, pinging to the IP or web address works > fine. And if I telnet to port 80, I get a connection. > > The domain amazing.amazing.com, where I have my old personal site up, > works normally. It''s served by Apache. amazing.com is served by > Mongrel. This made me wonder if maybe the Comcast toolbar mangles > requests in a way Mongrel doesn''t like? > > The alternative is to think that Comcast cares enough about my still > brand new low-traffic web site to want to bother blocking it. > > The site is social networking and does not allow sexual material due > to the terms of Google ads. A guy came and posted some sex images > which were promptly removed but I suppose it''s possible they were > noticed. > > Anyone else have similar issues, and if so, how did you work around > them or find out what they were?ive had a lot of issues running basic services for my own usage, on comcast. i mean stuff taht porbalty technically violates the TOS but has about as much functionality as the official-sanctioned ''internet is only WWW and email'' clients. stuff like all the ip addresses being in blackholes, so the only way you can send mail is if you forward thru comcast''s smtp server as a relay. stuff like setting smb ports = 5190,139,445 in /etc/samba/smb.conf and //a/hd /a smbfs port=5190,password=*** 0 0 in /etc/fstab since both of the default samba ports are blocked stuff like, VOIP calls dont go through with bizarre SIP ''network congestion'' errors even witho congestion, via multiple providers on both inbound DID and outbound calls (none thru their ridiculously expensive officially-sanctioned VOIP service, of course) stuff like using more than 50% of your upstream bandwidth causing downstream to be capped to the same speed, on freeBSd or linux with no intermediary firewall/router stuff lke getting in a nasty catch 22 situation where you cant grab an IP address if your MAC address changes, and you have to do a crazy reset-the-modem and dhclient dance until something works as for comcast toolbar mangling your URL, thats a possibility, but i''d also look into apache. i''m convinced proxypass is unescaping my URLs, even though therse no explicit rule stating to do this (they contain http, then escaped versions of : and /s.. ngrep is your friend..> > Try retyping the URL in the browser address bar above. Or, search the > Web. > > Search the Web: > > > Did you mean: www.alazing.com? >i''d recommend using a DNS server that isn''t comcasts, as well.. but i''m guessing that is implemented in the browser rather than smoething more evil..