Good article. I like this . In meantime I did similar app in order to solve this transition. Keep posting.
If your MySQL server has hundreds of clients (applications) and tens of thousands of queries per second, MySQL default network settings may NOT be for you. Network performance is not often a significant factor in the performance of MySQL. That said, there are things to consider.
If you are building new applications make these changes now. Developer expectations are hard to change. My example below will break your application if developers open a database connections and then spend ten minutes playing with their play doe before making a query. If you have working applications …
[Read more]As the program chair for the recently announced MySQL Track at the ODTUG Kaleidoscope conference located in Washington DC we are also looking into an associated free community event for MySQL locals in addition to a dedicated track for 4 days.
Please let us know your name and email via the form at http://ronaldbradford.com/ODTUG/free-event/ so we can provide more details in the coming week as we try to finalize logistics.
Registration will be necessary for attendance however for now we just want to know who is local so we can provide more details soon!
Updated. Full details of the free Monday night sundown sessions and reception can be found at MySQL track with free event at …
[Read more]I frequently encounter MySQL servers with intermittent problems that don’t happen when I’m watching the server. Gathering good diagnostic data when the problem happens is a must. Aspersa includes two utilities to make this easier.
The first is called ’stalk’. It would be called ‘watch’ but that’s already a name of a standard Unix utility. It simply watches for a condition to happen and fires off the second utility.
This second utility does most of the work. It is called ‘collect’ and by default, it gathers stats on a number of things for 30 seconds. It names these statistics according to the time it was started, and places them into a directory for analysis.
Here’s a sample of how to use the tools. In summary: get them and make them executable, then configure them; then start a screen session and run the ’stalk’ utility as root. Go do …
[Read more][author's note: personally, I use awk a bunch in MySQL DBA work, for tasks like scrubbing data from a production export for use in qa/dev, but usually have to resort to Perl for really complex stuff, but now I know how to do .]
Basics:
By default, fields are separated by any number of spaces. The -F
option to awk changes the separator on commandline.
Print the first field, fields are separated by a colon.
awk -F: '{print $1}' /etc/passwd
Print the first and fifth field:
awk -F: '{$print $1,$5}' /etc/passwd
Can pattern match and use files, so you can replace:
grep foo /etc/passwd | awk -F: '{print $1,$5}'
with:
awk -F: '/foo/ {print $1,$5}' /etc/passwd
NF = built in variable (no $) used to mean “field number”
This will print the first and last fields of lines where the
first …
I work on many MySQL performance problems. This gives me many ideas on how to improve monitoring. Sometimes the ideas are good and now is the time to share those requests with MySQL devel because they are getting a lot of work done (and filling my inbox with updates). My latest requests are listed below and likely to appear in a Facebook patch real soon:
- Make the Rows_examined field in the slow query log valid for insert, update and delete statements. MySQL devel just fixed this for bug 49756.
- Use the Lock_time field in the slow query log for per-statement row lock wait times. See feature request 53496
- Count queries by success and failure. The counter names could be Queries_ok and Queries_error. They are incremented when a command or query finishes without or …
It’s Friday already, and we know what that means! Log Buffer, the industry’s weekly review of database blogs is here again for your reading pleasure in the 188th issue.
Starting off this week’s issue is a request from Mark Grennan a DBA who would like to let the community know about his blog MySQL Fan Boy, where he wrote an interesting post on including a script to replace MySQL table files on a live system, making it faster and limiting locking on large table loads. Also a post this week on whether MariaDB is a drop in …
[Read more]Ronald asked me if I could present at ODTUG’s Kaleidoscope conference, which is only a couple hours from me, but I’ll be at the Netways OSDC that week. Matt Yonkovit will be there representing Percona. I wish I could go: I would really like to mingle with more Oracle users and developers, and I think that participation is the key to building relationships between MySQL and Oracle users — two groups of people who are going to be overlapping more in the future. If you can attend, I hope you will — and blog about it so I can read.
Related posts:
- OpenSQL Camp events in 2009 There are
- …
The Beacon Pattern:
- This is a “Get out of the business” pattern
- Identify an oft-occurring and annoying task
- Automate and document it to the point of being able to hand it
off to someone far less technical
Example:
- System admins were being put in charge of scheduling rooms in
the building
- They wrote a PHP web application to help them automate the
task
- They refined the app, documented how to use it, and handed it
off to a secretary
- They have to maintain the app, but it’s far less work.
The Community Pattern:
- Prior to launch of a new service, create user documentation for
it.
- Point a few early adopters at the documentation and see if they
can use the service with minimal support
- Use feedback to improve documentation, and the service
- Upon launch, create a mailing list, forum, IRC channel, or
Jabber chat room and ask early …
Dear Community,
Percona Server 5.0.90, release 21 is available for use.
Comparing to the previous release it has following new features:
- The build is based on MySQL-5.0.90
Fixed bugs:
- Fixed Bug #539190 Percona-XtraDB package doesn't allow libmysqlclient15off
- Fixed Bug #479106 mysql-5.0.87 + patches-5.0.86 compile fail in ubuntu 9.10 (karmic)
- Fixed tests mysql, mysql_upgrade, ssl*
See release notes for earlier changes.
RPMs and DEB packages are available in Percona repository.
…[Read more]