We're offering a 75% discount prior to the FIFA World Cup in
Brasil!
Use coupon code " FIFA2014 " and enjoy a full license, available
for all our products!
Make sure to check out our
products for MySQL, Firebird, Oracle, SQL Anywhere and other
database systems.
In my previous post, I blogged about using Percona Server with Docker and have shown you how fast and easy it was to create a virtual environment with just a few commands.
This time I will be showing you how to setup a three-node Percona XtraDB Cluster (PXC) 5.6 on the Docker open-source engine. Just to review Docker… “is an open-source engine that automates the deployment of any application as a lightweight, portable, self-sufficient container that will run virtually anywhere.”
In this case we will make use of a Dockerfile, think of this more like the Vagrantfile, it is a build script with a set of commands automating the creation of a new docker container.
For this case, we will use the …
[Read more]There’s a pattern I keep seeing in threaded programs (or indeed multiple processes) writing to a common log file. This is more of an antipattern than a pattern, and is often found in code that has existed for years.
Basically, it’s having a mutex to control concurrent writing to the log file. This is something you completely do not need.
The write system call takes care of it all for you. All you have to do is construct a buffer with your log entry in it (in C, malloc a char[] or have one per thread, in C++ std::string may do), open the log file with O_APPEND and then make a single write() syscall with the log entry.
This works for just about all situations you care about. If doing multi megabyte writes (a single log entry with multiple megabytes? ouch) then you may get into trouble on some systems and get partial writes (IIRC it may have been MacOS X and 8MB) and O_APPEND isn’t …
[Read more]Those in the MySQL/Drizzle world have probably seen this a bunch of times before, but I think it still holds up (now five years later) as one of the best NoSQL explanations around.
It may not be surprising that there’s been a few projects over the years that I’ve worked on where we’ve had to care about stack usage (to varying degrees).
For threaded userspace applications (e.g. MySQL, Drizzle) you get a certain amount of stack per thread – and you really don’t want to bust that. For a great many years now, there’s been both a configuration parameter in MySQL to set how much stack each thread (connection) gets as well as various checks in the source code to ensure there’s enough free stack to do a particular operation (IIRC open_table is the most hairy one of this in MySQL).
For the Linux Kernel, stack usage is a relatively (in)famous problem… although by now just about every real problem has been fixed and merely mentioning it is probably just the influence of the odd grey beard hairs I’m pretending not to notice.
In a current project I’m working on, it’s also something we have …
[Read more]
Infobright is a great database technology for reporting and
analytics, but it also comes with its own quirks.
Edit: Every single one of the columnar database technologies
and even standard database technologies have quirks. Infobright
does not have an unusually large number more than anyone
else. Other columnar store vendors simply wont tell
what their quirks are and you are left to discover them on your
own. In some cases, they can be crippling or "maybe we need
something else even though we've spent 0.X million euros on it"
types of quirks.
I'd like to share those quirks with you now in an effort to make
transitioning to it smoother:
- No user-defined functions - no select my_special_calculations(col1) from table; - unless you have a tiny dataset.
- No Views - you can use views, but they will not use the infobright optimizer and will use the MySQL one which will make …
There are many cool, new things happening with Percona Cloud Tools. To avoid “tl;dr” I will highlight only one new feature after a brief, general announcement. The new feature is a 3-minute MySQL monitor. I’ll blog later about other features.
The general announcement is: Last week we quietly released a brand-new agent called percona-agent, and we added MySQL and system monitoring to Percona Cloud Tools. We also wrote a brand-new API from the ground up. We call it all “PCT v2″. For you it means a better experience and more features, all still free while we’re in beta.
One new feature in Percona Cloud Tools v2 is MySQL monitoring in 3 minutes, i.e. a 3-minute MySQL monitor. Let’s be honest about monitoring: We …
[Read more]I’ve just released the 1.0.1 version of the MySQL sys schema. It contains a few bug fixes (including a contribution from Joe Grasse, thanks Joe!), and a number of new helper procedures around viewing and altering configuration for consumers and instruments, contributed by the MySQL QA team, as they’ve started to incorporate more Performance Schema trace data in to their automated testing.
Next up is the 1.1.0 release, that also includes a bunch of new host summary views that were contributed by Arnaud Adant (of the MySQL Support team). I have a number of new things in development to add as well before then though.
Let me know if there are things you’d like to see as well, maybe I can find time to work on those too.
Enjoy.
I spoke at MySQL Tech Day in Paris yesterday, it was a fun day – apart from the early and late flights in and out on the same day, my boss told me I was crazy, he was probably right.
First Dimitri presented some recent benchmark findings:
MySQL techday at Oracle @dimitrik_fr @Aurelien_LEQUOY @sfrezefond
@MarkLeith @lefred … pic.twitter.com/Zy8mI9i8JK
— Olivier DASINI (@freshdaz) May 22, 2014
Then I got my turn to speak for a few hours around …
[Read more]May 23, 2014 By Severalnines
If you need to deploy a database cluster behind your corporate firewall, on servers with no internet access, then this blog is for you. Most of the installation tutorials out there require servers to have an internet connection, and that would not work very well with companies under strict policies and compliance guidelines.
Our online Galera Configurator supports deployment
without Internet connection for Percona XtraDB Cluster. You would
need to prepare a minimum of four hosts (three DB nodes and one
management node), generate a Deployment Package from the
Configurator and copy it to the ClusterControl host. In this
post, we will show you how to deploy Percona XtraDB Cluster 5.5
in an environment without internet connection on CentOS 6.5
(installed with minimal installation). Our setup is …