PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.ruby > Re: Camping or Merb
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Re: Camping or Merb

Réponse
 
LinkBack Outils de la discussion
Vieux 14/09/2007, 21h58   #1
Roger Pack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Camping or Merb

so you prefer nginx over swiftiply? Have you tried your mockup with
swiftiply? Just wondering.
-Roger
--
Posted via http://www.ruby-forum.com/.

  Réponse avec citation
Vieux 15/09/2007, 00h19   #2
khaines@enigo.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Camping or Merb

On Sat, 15 Sep 2007, Roger Pack wrote:

> so you prefer nginx over swiftiply? Have you tried your mockup with
> swiftiply? Just wondering.


Me?

I wrote Swiftiply, and yes, I use it in lieu of nginx or Apache on several
sites, now.


Kirk Haines


  Réponse avec citation
Vieux 15/09/2007, 00h22   #3
khaines@enigo.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Camping or Merb

On Sat, 15 Sep 2007, Jeff Barczewski wrote:

> If you need SSL, then I believe you will need something like nginx (apache,
> lighttpd, pound, etc) to handle the certificates. Also I doubt that you will
> beat the speed of nginx for serving static content, so that would also be a
> consideration.


Swiftiply has SSL on the horizon. EventMachine will handle SSL
connections, so that is not a problem. There are just a few config
management issues in the way of full fledged support. I have it on my
roadmap for the 0.7.0 release.


Kirk Haines


  Réponse avec citation
Vieux 15/09/2007, 00h27   #4
khaines@enigo.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Camping or Merb

On Sat, 15 Sep 2007, Jeff Barczewski wrote:

> If you need SSL, then I believe you will need something like nginx (apache,
> lighttpd, pound, etc) to handle the certificates. Also I doubt that you will
> beat the speed of nginx for serving static content, so that would also be a
> consideration.


Apologies for the back to back posts. On static file handling, you are
right. nginx is about as fast as it gets. But that's fine. Swiftiply's
static file handling doesn't have to be that fast to be fast enough. My
target range is 8000 to 9000 small static files per second, and at least
100 megabytes per second of data transfer for large static files, on my
test machine. That is the area the threshold that I am working to
continue to meet or beat as I work on Swiftiply. It's not nginx speeds,
but it's better than Apache speeds (out of a single process, too), and
it's fast enough to saturate a gigabit port if one is doing big files, and
a 100mbs port if one is doing small files, so it's fast enough for the
vast majority of deployments.


Kirk Haines

  Réponse avec citation
Vieux 15/09/2007, 03h25   #5
Eduardo Tongson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Camping or Merb

How do you use Swiftcore IOWA? Is it better than using IOWA with HA
Proxy with evented mongrel?

BTW http://iowa.swiftcore.org is not responding as of Sat Sep 15
02:16:36 UTC 2007.

On 9/15/07, khaines@enigo.com <khaines@enigo.com> wrote:
> On Sat, 15 Sep 2007, Jeff Barczewski wrote:
>
> > If you need SSL, then I believe you will need something like nginx (apache,
> > lighttpd, pound, etc) to handle the certificates. Also I doubt that you will
> > beat the speed of nginx for serving static content, so that would also be a
> > consideration.

>
> Apologies for the back to back posts. On static file handling, you are
> right. nginx is about as fast as it gets. But that's fine. Swiftiply's
> static file handling doesn't have to be that fast to be fast enough. My
> target range is 8000 to 9000 small static files per second, and at least
> 100 megabytes per second of data transfer for large static files, on my
> test machine. That is the area the threshold that I am working to
> continue to meet or beat as I work on Swiftiply. It's not nginx speeds,
> but it's better than Apache speeds (out of a single process, too), and
> it's fast enough to saturate a gigabit port if one is doing big files, and
> a 100mbs port if one is doing small files, so it's fast enough for the
> vast majority of deployments.
>
>
> Kirk Haines


  Réponse avec citation
Vieux 15/09/2007, 11h32   #6
Marcin Raczkowski
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Camping or Merb

I'll try to reply to few previous post here.

I didn't test swiftyply very much, and i didn't do benchmarks comparing
to nginx so i have no idea how speed comparsion looks.

But i DID test nginx vs. apache vs. apache2 vs. light and nginx always
wins

now mongrel vs. evented mongrel - evented mongrel wins BIG

clasic mongrel - forking mongrel (my own modification that makes mongrel
act like apache - fork on request) - a little bit slower then classic,
but for low traffic sites - much better choice then cluster - you only
need one mongrel instance in your memory

mongrel vs. nginx on static files - nginx wins - but it's power is only
needed when working with lots of small files. i also have moded mongrel
that is designed to handle static pages - it allows caching most used
files in memory - like css styles and main page, i'm planing to improve
it with sendfile syscall for speed on files that are not in cache and
mmap on things that are in cache.
BUT all this improving is only for my fun and pleasure becouse you are
more likely to run out of bandwidth before speed will be an issue

now frameworks - i didn't test all and mostly I'm basing this list on my
old benchmarks, what khaines said, and other things found on network
Order from slowest to fastest

- rails
- nitro
- ramazee
- merb - almost 15 times faster then rails in my tests
- iowa

somewhere between merb and iowa probably would be my micro-framework,
still unreleased - but i'm geting into it and it'll be availble this
week i think for alfa

now ORM
- AR
- Og
- Sequel / Kansas - no idea which one is faster i didn't test them

sequel is 2-3 times faster then AR on small and frequent queries, but
have nice features like connection pooling for postgres which gives it
even more advantege.

Okey that would be all in terms of speed, but remember that usually
lower level you work on - more time you spent and more bugs you make, we
were considering using somethning other then rails in our projects and
we found out that if project doesn't REALLY need speed, costs of
adopting new technology, training, testing etc. exceed what we would
save on hardware.

cheers

  Réponse avec citation
Vieux 17/09/2007, 16h34   #7
Roger Pack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Camping or Merb

>
>> so you prefer nginx over swiftiply? Have you tried your mockup with
>> swiftiply? Just wondering.

>
> Me?
>
> I wrote Swiftiply, and yes, I use it in lieu of nginx or Apache on
> several
> sites, now.
>
>
> Kirk Haines



I guess the concern would be that using swiftiply to handle static
content might be a little slower than nginx. Any thoughts?

If this were a speed problem, a possible fix might be to add to
EventMachine a call along the lines of 'here's a file's path, I want you
to pipe that file to this socket' or something. Then maybe swiftiply
could get about as fast as C based. If it were slower. Just some
random thoughts. Thanks Kirk.

-Roger
--
Posted via http://www.ruby-forum.com/.

  Réponse avec citation
Vieux 17/09/2007, 19h07   #8
khaines@enigo.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Camping or Merb

On Tue, 18 Sep 2007, Roger Pack wrote:

> I guess the concern would be that using swiftiply to handle static
> content might be a little slower than nginx. Any thoughts?
>
> If this were a speed problem, a possible fix might be to add to
> EventMachine a call along the lines of 'here's a file's path, I want you
> to pipe that file to this socket' or something. Then maybe swiftiply
> could get about as fast as C based. If it were slower. Just some
> random thoughts. Thanks Kirk.


A little slower than nginx can still be very fast.

My design goals are to be in the 8k-9k files per second range on my
development hardware, for small files, and preferably > 120 megabytes per
second for large files.

It is already a somewhat optimized path that lets it be that fast. Part
of what I have been working on over the last month (ugh), along with HTTP
caching support, are some changes to further streamline and optimize that
path. However, after a point, additional speed is mostly irrelevant
because one has already exceeded the bandwidth of one's port. If you have
a 100mbs port, you're going to stream large files at a small percentage of
120 megabytes per second, anyway, and even the typical small image files
that are common on web sites are going to saturate your bandwidth at a
speed less than 8k/second, so the fact that nginx can do 16k/second isn't
so meaningful, most of the time.

That said....I _think_ small files handling may bump up into the 11k to
12k/second range on my hardware. Large file streaming will remain about
the same. I am tinkering with it as I type this, in fact.

I'm also tinkering with a microframework, tentatively labeled Wisteria
(might be something up at wisteria.swiftcore.org later this week), based
off a lot of this work. It's aimed at things which need to be done very
fast, or which require a bunch of long running connections (file uploads
and downloads).

At its simplest, an earlier version of it that I was playing with last
week would do 16k "Hello World" type requests per second. I think that if
this pans out (it's rather directly derived from other Swiftiply work),
it'll probably end up doing around 11 thousand to 12 thousand simple
requests per second, and should be able to saturate a gigabit port, for
upload or download handling, on one or maybe two processes.


Kirk Haines


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h12.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,16426 seconds with 16 queries