320 points · by thenextcorner · 14y ago · 91 comments
It frustrates me when people use ASCII instead of packed bitmaps for things like this (packet transmitted once a second from potentially hundreds or thousands of nodes, that each frontend proxy has to parse into a binary form anyway before using it). Maybe it's a really small amount of CPU but it's just one of many things which could easily be more efficient.
Some of this stuff is so simple and useful it's a wonder they weren't there before:
http://httpd.apache.org/docs/2.4/mod/mod_auth_form.html http://httpd.apache.org/docs/2.4/mod/mod_session_dbd.html http://httpd.apache.org/docs/2.4/mod/mod_buffer.html http://httpd.apache.org/docs/2.4/mod/mod_data.html http://httpd.apache.org/docs/2.4/mod/mod_ratelimit.html http://httpd.apache.org/docs/2.4/mod/mod_lua.html
"mod_ssl can now be configured to share SSL Session data between servers through memcached"
"mod_cache is now capable of serving stale cached data when a backend is unavailable (error 5xx)."
"Translation of headers to environment variables is more strict than before to mitigate some possible cross-site-scripting attacks via header injection."
"mod_rewrite Allows to use SQL queries as RewriteMap functions."
"mod_ldap adds LDAPConnectionPoolTTL, LDAPTimeout, and other improvements in the handling of timeouts. This is especially useful for setups where a stateful firewall drops idle connections to the LDAP server."
"rotatelogs May now create a link to the current log file."
Very nice that they rewrote the mod_rewrite and caching guides with more examples and ease of use in mind. Here are the API changes: http://httpd.apache.org/docs/2.4/developer/new_api_2_4.html
I think that's a premature optimization. If it becomes a performance problem, optimize it then. Otherwise, I doubt it's worth the cost of humans not being able to read the information on the wire, and deciding on and implementing a binary format to represent the information.
If you're writing a piece of some software with one specific function and it doesn't affect anything else and it doesn't take any more time to make it efficient, just do it efficiently the first time. This way you don't have to come back later and rewrite it (which by the time that's required, somebody already wrote something dependent on your crappy design, which now has to be fixed too, etc)
v=1&ready=75&busy=0
Consumers should handle new variables besides busy and ready, separated by '&', being added in the future.
I think that last line is why they avoid a binary format. Everyone who's consuming this packet already has a function available which can parse url query parameters with arbitrary name/value pairs, and that's the format being used here. I'm also not sure that the user needs to turn this into a binary format before using it; a string comparison against "75" and "0" is just as capable and nearly as fast as a numeric comparison, especially if you're using a scripting language for your heartbeat monitor rather than C.
I can buy more hardware, but operating and maintaining systems that have been optimized to hell and back for no compelling reason is a massive ongoing human resources cost, not even counting the initial unnecessary development time.
My original point was not to encourage over-optimization, but to design better. But deploy whatever you want, I don't care.
It's very easy to glance over and see what's been set up compared to Apache's verbose pseudo-XML syntax which is about the worst syntax you can come up with: the verbosity of XML but without the benefit of being able to generate or parse it using standard XML tools!
The other thing that fucks me off is that the server will reboot happily and fail to start without having first checked that it can start, and configtest doesn't pick up things like directories being missing.
Uh, last time I checked (Apache 2.2.17 (Ubuntu)) it did.
# apache2ctl configtest
Warning: DocumentRoot [/dev/null/doesnt/even/exist] does not existJust read http://wiki.nginx.org/IfIsEvil for a start. Lots of things can only be done with ifs (unless you write a custom module) The "What to do instead" doesn't work for things that aren't simple rewrite rules.
There are seemingly arbitrary rules for what contexts you can have conditionals in, what commands can be in conditionals. There is no support for ands, ors, or nested ifs.
Personally, i'm very glad to see performance considerations being taken seriously, and even if nginx or node.js don't take over the world, its nice to see that they're forcing others to sit up and think.
Apache is "good enough" for most people.
NGINX or Node.js really don't bring much new to the table of "good enough".
It's why plan 9 isn't as popular as it probably should be. UNIX was good enough.
Just reading an nginx.conf and comparing it to an httpd.conf should be enough to convince you what nginx brings to the table.
On the high end, provisioning is fully automated.
Not to mention the fact that after > 15 years(!), amateur sysadmins like me can pretty much dream the config settings.
Which leaves a relatively small target audience for whom a simpler config is even remotely relevant.
The mandatory configuration is actually pretty minimal, especially if you are using it as an app server. Take, for example, http://kasparov.skife.org/blog/src/wombat/httpd-conf-cool.ht... which sets up a bunch of mod_wombat (precurser to now-bundled mod_lua) stuff.
There has never been a concerted effort to move Plan 9 beyond its roots as a research platform. The real world doesn't run on research platforms, and those of us trying to get real work done aren't going to invest our time in a research platform that needs enormous work to bring it up to a usable state.
You certainly didn't use nginx before it had any english documentation then.
I look forward to testing it out down the road.
"major" new version is just English - it's a new version with significant enhancements or impact.
In this context, "major new version" means a non-patch release, with new features.
Oh and ... Node.js is probably going to be mentioned.
This is good for everyone ranging from small site to large because it means reduces costs etc.
7
and
3
Much less is a new release indicator that Zdnet will be "eating their words in a year or two" regarding Ngix/Apache market share.
On the contrary, if this release DOES improve performance a lot and reduces memory usage, on top of all the other savings, it would make it even LESS possible for NGINX to win over Apache.
Besides raw performance, there are lots of reasons to use Apache still, from the fact that it's a battle tested server with tons of documentation, know best practices, tools and modules support, knowledgable admins etc available for it. So, if performance is improved, many people won't bother switched that otherwise might have.
http://news.netcraft.com/archives/2012/02/07/february-2012-w...
The main reason is: I don't care for that much performance in the raw one standalone server case, and I can always put Varnish on top. But I do care for easy of installation, breadth of documentation, etc, and with Apache you got that in spades. This can be in even very simple things, that I can solve in Nginx in 15 minutes, like, say, Wordpress having specific rewrite rules and support for Apache built-in and not for Nginx. It's trivial to solve, but if I used Apache, I wouldn't even have to.
Given two platforms, one of which is better than the other but less popular, I usually stick to the most popular one (within reason. Like, I won't go for PHP, but I would go with Rails, not Padrino or some even less known thing).
Fewer problems down the road, and if you get into those, people have already encountered them.
Is it just me or the more you pay for software, the more it hurts you these days?
I am using and administering it from 6 years, seems pretty much okay to me if you use the .NET stack. If 18% of the top million sites are using it over completely free alternatives, they must be doing something right.
edit: forgot the "burn, karma, burn" line...
VBScript must be the hottest programming language, right?
Netcraft confirms it.