NavigationUser loginMonthly archive
|
June 2009Let's see ifLet's see if this ping.fm works as I anticipate
Dear Lazyweb: A MySQL server on VMWare ESX? Help!Some organisations tend to use VMWare ESX(i) to virtualize their server environment and regardless of whether that is the best choice for any given environment, what you should most certainly not do, in my humble opinion, is run any type of database server on any kind of virtualization technology that;
To clarify statement #2 a little; You should know that if you choose the guest to be x86_64, you are going to see a relatively large performance hit if your virtualization technology only supports a x86 host node operating system and thus needs to apply binary translation (in series, increasing the number of levels to decend in the virtualization stack), to strip the (faster) x86_64 "shortcut" CPU instructions and have it all be supported by the x86 host operating system. I'm not the absolute expert on the subject of virtualization myself, admittedly, regrettably, and whenever I talk about the benefits of later generations of Free Software virtualization in comparison to other virtualization technologies I tend to simplify and abstract my understanding of how it is more efficient and less error-prone, by saying that most of the throughput from the guest to the actual hardware needs to decend as few levels in the virtualization stack as possible, and some stuff can be done in parallel (memory page sharing, virtio, anything else?). It also helps to simply not support layer-on-top-of-another-layer foo such as binary translaction which results in building a giant stack to be descended (in series). I think in the past I've drawn a few very high-level diagrams illustrating this for the often not-so-technically-savvy audience, but I'm unable to find them right now. So, I like to think that I have some understanding of how this stuff works even though in this blog post I'm obviously wrong when I say stuff like some of the aforementioned because it is technically not entirely accurate but regardless, it draws a nice picture for those that would not understand what I'd be saying if it were technically accurate. Anyway, that's where I'm coming from, you be the judge of whether I understand the foo or not ;-) A MySQL server on VMWare ESX(i) 3.X or 4.X virtualizationIf you virtualize a database server, you are going to find that any given form of a performance hit by using that virtualization technology is greatly impacting the performance of your database server. It is commonly known that one should very, very carefully consider NOT to virtualize the database server on a virtualization technology that meets the aforementioned 4 symptoms. Taking one more step back, I'd say even virtualizing a database server on any given type of virtualization technology should be very, very carefully considered even if the virtualization technology of choice is the latest and greatest and offers 98% performance of bare metal (Guess which virt. tech. I'm talking about here and get a free beer at FUDCon -all you need to do is leave a comment and attend and pick up your beer). Let me start by saying this database server is the backend store for one of those services that just needs to be snappy and fast and shiny all-over; end-user facing, it's the most signifcant and most important service a business can run internally; E-mail and calendering. It's what tends users to go nuts if unavailable or even not as responsive ans snappy as they would like. If you've ever done Helpdesk Support I bet you know what I mean. Re: the performance hit; For one, the I/O performance on the hard disk for this one MySQL server that I manage, virtualized using VMWare ESX(i) is around 12 MB/s. My laptop hard disk does ~57 MB/s of buffered write I/O (if I've not used the wrong benchmark by mistake, I'm sure one of you readers can recommend me a util I do get correct numbers with if this seems a little off). Since it's doing 33k of InnoDB reads per second (on average, so including weekends and outside office hours), you can imagine the peak is over 250k InnoDB reads -which I then imagine cannot be in memory at any given point the database server needs it, causing direct (yet buffered?) I/O to disk. It's running on x86_64 guest operating system because of the memory footprint of MySQL being over 2GB so that it can cache a lot, but as it seems the VMWare ESX(i) node it runs on only natively supports the i686 CPU instruction set. Enter the binary translation from x86_64 to i686 (that is, if it is not i586), in series, accounting for yet another layer in the stack that increases the performance hit as well as makes the environment more error-prone. Note that the hardware itself is x86_64, and so the virtualization technology does not use all of the hardware capabilities. Then of course there is the PAE CPU feature needed for x86 to be able to address over 4GB (which shows as 3290MB) of memory. No matter how small the performance hit actually is, it is a performance hit regardless. I'm done throwing everything I know at the problem of performance in this situation and so here it goes; Dear lazyweb,What would you recommend I do (except raise my hands and stop supporting the environment which I've already seriously considered), given this awkward situation? What's left to tweak that you think I might not have tried yet? This MySQL box is going to production soon and I want it's dependent services to be snappier then ever before -something I don't think I'm going to get if the MySQL box remains to be virtualized using the current virtualization technology in use -but I secretly hope you can prove me wrong.
Publication in Linux on BlueAn article I've written has been published in the latest issue of the magazine "Linux on Blue". I've attached a scan of the pages -even though the magazine doesn't publish it's issues online it's a free magazine with about 7.000 copies being distributed with companies in the Netherlands so I don't think they'd mind me posting my own article. Thema of this month's issue is Security on Linux, and so I've written a very high-level article on Security Enhanced Linux titled "Mandatory Access Control and Auditing", but the funny thing is the issue also has an article on AppArmor. Poor Novell...
Fedora CD Installation media with it's back to the wall (again)The Fedora Project has put installation media CDs with it's back to the wall, has loaded and aimed it's guns, and is ready to pull the trigger in 5 months. Here's the start of the thread on fedora-devel-list. As you probably know, Fedora Unity releases Fedora once or twice or trice after the general availability for a given release, in the form of Re-Spins. We've included CD Installation media in our Re-Spins even if the official Fedora distribution didn't have them generally available (which was the case for Fedora 7 and Fedora 8). The discussion on fedora-devel-list right now seems to evolve around simple statistics, but... Regrettably, Fedora Unity lacks the statistics on how many times our Re-Spin is downloaded. If, at all, the numbers that we have are complete and trustworthy, then these are the amazing numbers. Note that you should never trust statistics. Our numbers at http://spinner.fedoraunity.org:6969/ show a grand total of over 5000 complete downloads (those of Fedora 8 not included), and over 22000 pending downloads... This I suspect is a number so wrong... If you believe this number let me give you another shock: Santa Claus does not exist and has never existed. The other number says over 17.000 torrent clients have downloaded our products. Now this number I could argue could be true... but I simply don't know, so I'll let you make up your own mind. The statistics we don't have include your Jigdo downloads for every release that we do (and have done with the help of Jigdo since Fedora 7 or so), but it's obvious that our Re-Spins are downloaded a lot. An awful lot, even. Even if the numbers I refer to are not at all true... given the amount of feedback that we get, the amount of requests for a new Re-Spin even just after a new Fedora release comes out ("Can you please, please include the 0-day updates???"), I suspect the number of users is in the thousands. We, Fedora Unity, obviously provide Re-Spins as a service to the community. Those that like the pie, get the pie, then eat the pie. We're not as much concerned with the number of downloads... For us, it's a matter of quality, not quantity. Quality in how you experience a Fedora installation a few months and a few hundred updates later. Quality in enabling fixes to be backported in to the installer images so that Fedora actually improves and the release matures or stabilizes. Not the quantity of hard numbers we can't trust -the number of downloads through one method or another. Ergo, in the discussion on whether the Fedora Project should re-consider it's decision to include CD media in it's release once again, after re-including CD media in the release with Fedora 9 following some pressure from within the community, I can only argue that the numbers shown are not entirely representative, and that Fedora Unity will not bend over to lame argumentation, and Fedora Unity will continue providing this service to the community. The question is, how far will the Fedora Project let Fedora Unity do so through the Fedora Project proper? Now that this question has been asked, I'm wondering what the answer would look like. Mean time, if you have purpose for CD media, I suggest you join the discussion and have your voice be heard. Now.
selection pics me and kanarip in AustraliaHi Everybody, Rather have a selection of the pictures kanarip and I made in Australia? Check out the subalbum I made @ . Not only I made a selection but I also manipulated a few pics (a girl needs to do what a girl needs to do, isn't that right?). So, even if you already seen the pictures, now you've got the chance to get a better impression... Cheers, Lydia
No more downtime thanks to Stefan Hartsuiker!After tonight's unknown twist of destiny, it seemed both my internet connections at home went down, and nothing, nothing at all was reachable. My home network really runs everything, from DNS for my domains to websites and email, and so downtime is... painful. If not for a good friend of mine, Stefan Hartsuiker (LinkedIn, Fedora Project), this would have still been the case so I owe him a big thank you for fixing up the mess in my apartment and bringing all my stuff back online: <big>Thanks Stefan!</big>I owe you about a dozen or so beers of your choice!
Installing DrupalInstalling Drupal is a breeze. Configure your webserver to have a certain directory published and navigate to that directory to have Drupal execute it's web-based installation procedure. Say, if you wanted Drupal to run your www.domain.tld website, and your Apache VirtualHost's $ cd /var/www/domain.tld/www/ Now that all the files are in place, it's time to really start installing and configuring Drupal. Navigate to http://www.domain.tld/ or whatever your location would be, and follow the directions on the page that pops up. Tips and tricksMind that although the installation using Drupal's web-based installation dialog is pretty straightforward, here's a few things that I have done to make it just that little bit smoother:
Why the public_html -> drupal-6.12/ symbolic link?You may be wondering, why the hell does he create a symbolic link public_html -> drupal-6.12/? Well, actually it's just something I commonly do... For upgrades of (web-)software, I tend to do something similar to the following:
In case of Drupal, Step #3 is certainly very easy; just copy the drupal-6.12/sites/ directory over from the old version to the new version, change drupal-6.12+n/sites/default/settings.php to use the test copy of the database, and there we go. When I'm done, I can recreate the symbolic link from public_html to drupal-6.12+n, preserving the old copy of Drupal. Call me nuts but that's how I do it.
Configuring DrupalAfter the installation is complete, you navigate to your website and voila, you have a rather complete Content Management System installed. Now, how do you personalize it? Select, install and/or enable a few modulesUsing the Administer -> Site Building -> Modules page, you can select the modules you want enabled on your website. Whenever you install a module, this is where you go to enable it. Whenever you remove a module, this is where you go to ensure all data is removed. There's plenty of modules available from Drupal's website, so I suggest you start your search for interesting stuff there. Installing a module is often pretty straight-forward:
In the setup I have on www.kanarip.com, I have the following modules installed - not necessarily enabled:
We'll continue describing how that goes later on in this HOWTO. Add RolesInitially, for example, you only have two user roles:
Assigning permissions to different people using only those two roles can be a bit... brutal, so add roles. If you are going to have a blog on your website and you want someone else to be able to blog as well, but not all authenticated users, add a role Blogger and assign the appropriate permissions. Similarly, if you want multiple people to be able to administer the site, add a Site Admin role. As the word role indicates, add roles for anything you want other people to be able to do, then add those roles to the user accounts of those people.
HOWTO: Create your personal website with DrupalThis HOWTO explains how to install and configure the following applications and extensions:
Anything more? I'm sure there's more to come...
Self-Introduction: Lydia BossersDear reader, My name is Lydia Bossers and I'm the new kid on this block. Can I join the cool kids? I'm using Fedora on my workstation as well as my laptop since there's no way any Windows will ever be installed at home on anything but the Christmas tree (purposefully obtained free copies of the media, of course). I've been using Fedora for quite some time now... Actually now that I think about it I've been using Fedora ever since I'm dating kanarip. Anyway, Jeroen has added my blog to Fedora Planet and so he wanted me to blog about *something* so that my new hackergotchi would show up on Planet. I'm also on Twitter: @lydiabossers
|
Everyone's tweets
|