Articles of percona

新的nagios / cacti监控设置,我应该使用专用的虚拟机吗?

目前我们有4台裸机服务器和一台小型虚拟机服务器(都运行centos6),我正在设置监控Percona MySQL数据库服务器和复制奴隶(裸机),以及其余3个应用服务器。 好奇什么是build立一个监控configuration的首选方法是。 也许启动一个小型专用虚拟机,只运行远程监视其他5台服务器的监控工具? 你会在与要监视的服务器相同的主机上创build虚拟机吗? 也许使用像Digital Ocean这样的不同主机来运行监控工具?

Percona服务器和MySQL服务器在不同端口上的同一台服务器上

我有从端口安装MySQL,运行和侦听端口3306.在同一台服务器上,我从源码编译的Percona服务器,运行和侦听端口3307。 这里是percona&mysql的进程列表: #mysql processes bin/sh /usr/local/bin/mysqld_safe –defaults-extra-file=/var/db/mysql/my.cnf –user=mysql –datadir=/var/db/mysql –pid-file=/var/db/mysql/mysql.pid /usr/local/libexec/mysqld –defaults-extra-file=/var/db/mysql/my.cnf –basedir=/usr/local –datadir=/var/db/mysql –plugin-dir=/usr/local/lib/mysql/plugin –user=mysql –log-error=/var/db/mysql/mysql.err –pid-file=/var/db/mysql/mysql.pid #percona processes /bin/sh /usr/local/percona/bin/mysqld_safe –defaults-extra-file=/home/percona/my.cnf –user=percona –datadir=/home/percona –pid-file=/home/percona/mysql.pid /usr/local/percona/bin/mysqld –defaults-extra-file=/home/percona/my.cnf –basedir=/usr/local/percona –datadir=/home/percona –plugin-dir=/usr/local/percona/lib/plugin –user=percona –log-error=/home/percona/mysql-error.log –open-files-limit=65535 –pid-file=/home/percona/mysql.pid –socket=/tmp/percona.sock –port=3307 正如你可以看到percona正在运行–socket=/tmp/percona.sock –port=3307 。 当我尝试从本地主机连接Percona时,我正面临着奇怪的情况。 mysql -S /tmp/percona.sock -uroot -p # ok, I'm connected to Percona mysql -P 3307 […]

仙人掌 – 解释networking统计的值

我已经下载并安装了Percona Linux模板。 我注意到tx-drop的值有'm'和'u'的值,不太明白为什么我会得到micro和milli的值。 我期待阅读,只是在这个时间点丢弃的数据包的数量,但它并不是如此。 所以我正在解释它如下:*定义的时间段除以数据包丢失的数量。 例如。 12.5米将意味着80个数据包在一秒钟内下降。 150u将意味着在一秒钟内(1 / 150u)丢弃6666.67个数据包, 这个解读是否正确? 谢谢。

如何在Ubuntu 14.04上安装percona 5.6的mysql2 gem?

我已经按照percona网站上的说明设置了percona-server-server和percona-server-client软件包,但是当我尝试安装mysql gem时,我看到以下消息: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. 在日志中看到我看到: checking for ruby/thread.h… yes checking for rb_thread_call_without_gvl() in ruby/thread.h… yes checking for rb_thread_blocking_region()… yes checking for rb_wait_for_single_fd()… yes checking for rb_hash_dup()… yes checking for rb_intern3()… yes checking for mysql_query() in -lmysqlclient… no checking for main() in -lm… yes checking for mysql_query() in -lmysqlclient… no […]

XtraBackup还原给奴隶重复?

我们最近升级了一个MySQL 5.0 master-master安装到Percona 5.6。 因为我们的一些故障,从属于b0rken,但我们认为我们可以通过使用xtrabackup从正在运行的服务器创build备份并将其导入从服务器来简单地修复它。 我整个周末都试图这样做(部分原因是因为这是一个庞大的数据库和表),但无济于事。 有人能说出我在这里做错了什么吗? 首先,我在生产大师当前运行以下内容: ulimit -n 409600 innobackupex –defaults-file=/etc/mysql/debian.cnf /mnt 完成后,我将生成的目录复制到其他服务器并运行: innobackupex –use-memory=4G –apply-log /srv/restore 它最终会以OK消息退出。 现在我使用以下命令将其恢复到数据库: innobackupex –move-back /srv/restore 一切顺利,我可以再次启动MySQL(在我浏览/ srv / mysql目录之后,这是我们的数据库)。 数据在那里,数据库运行正常。 现在我开始从事这个数据库: /usr/bin/mysql –defaults-file=/etc/mysql/debian.cnf -e "CHANGE MASTER TO MASTER_HOST='10.xxx', MASTER_USER='replication', MASTER_PASSWORD='verysecret', MASTER_AUTO_POSITION=1; START SLAVE" 从动开始,但由于1062错误立即停止。 经过调查,我发现它试图申请的条目在我开始备份后立即添加到主数据库中。 我可以解决这个问题,但是我马上得到一个新的错误。 对我来说,似乎备份并不包含所有最新的GTID,只有在备份开始时可用的那些GTID。 我以为这正是XtraBackup应该解决的问题? 现在我看不出有其他办法来确保在备份过程中没有对数据库进行写操作。 我在这里做错了什么? 这是否应该发生? 在Debian Wheezy上运行所有最新的补丁。 Server version: 5.6.25-73.1-log […]

CentOS6框:yum删除Percona-Server-shared-51的依赖关系

我想安装Percona 5.7,但是当我运行相关的yum命令时,它告诉我与Percona-Server-shared-51有57次冲突。 我真的不知道为什么我安装了,因为我也有Percona-Server-shared-56。 rpm -qa | grep Percona Percona-Server-client-56-5.6.30-rel76.3.el6.x86_64 Percona-Server-shared-51-5.1.73-rel14.12.625.rhel6.x86_64 Percona-Server-shared-56-5.6.30-rel76.3.el6.x86_64 Percona-Server-server-56-5.6.30-rel76.3.el6.x86_64 我可以轻松地卸载56版本,但仍然遇到与51相同的冲突。 当我试图去除这个问题时,我碰到了这个问题: yum remove Percona-Server-shared-51 Removing: Percona-Server-shared-51 x86_64 5.1.73-rel14.12.625.rhel6 @percona-release-x86_64 5.9 M Removing for dependencies: cronie x86_64 1.4.4-15.el6_7.1 @updates 174 k cronie-anacron x86_64 1.4.4-15.el6_7.1 @updates 43 k crontabs noarch 1.10-33.el6 @anaconda-CentOS-201311291202.x86_64/6.5 2.4 k munin noarch 2.0.25-11.el6 @epel 535 k munin-node noarch 2.0.25-11.el6 @epel […]

Percona 5.7重新启动并放弃我的连接

我已经很长一段时间与这个bug的斗争,当我运行脚本到MySQL(Percona)我断开连接,当我尝试从一个活的服务器导入一个MySQL转储它在这里断开我。 所以,我为什么每次尝试运行我的脚本或尝试导入somthing与我的GUI客户端连接Refue时,我正在争取。 有eny如何得到这messegt之前,并知道有人在这里发生了什么? 它是我们的开发者服务器上的一个本地数据库,所以现在它不那么危险。 06:23:02 UTC – mysqld得到信号6; 这可能是因为你遇到了一个错误。 这个二进制文件或其中一个链接的库也可能是损坏的,不正确的构build或错误的configuration。 这个错误也可能是由于硬件故障造成的。 试图收集一些可以帮助诊断问题的信息。 由于这是一个崩溃,肯定是错的,信息收集过程可能会失败。 请通过报告http://bugs.percona.com/上的任何错误,帮助我们使Percona Server更好。 K字节的内存希望没关系;可能的是,mysqld可以使用最多的key_buffer_size +(read_buffer_size + sort_buffer_size)* max_threads = 68309 K字节的内存希望没关系; 如果不是,则减less方程中的一些variables。 线程指针:0x7f8c80000ae0试图回溯。 您可以使用以下信息来找出mysqld死亡的地方。 如果在此之后没有看到任何消息,则会出现严重错误… stack_bottom = 7f8cd0cd0e80 thread_stack 0x30000 / usr / sbin / mysqld(my_print_stacktrace + 0x2c)[0xe8197c] / usr / sbin / mysqld(handle_fatal_signal + 0x479)[0x797f89] / lib /x86_64-linux-gnu/libpthread.so.0(+0xf8d0)[0x7f8d06efc8d0] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37)[0x7f8d04e82067] / lib / […]

在一个Percona XtraDB集群节点上运行mysqldump会影响其他的性能吗?

我有一个3节点的Percona XtraDB集群。 只有其中一个节点通过使用数据库的应用程序连接到。 我想通过在其中一个节点上使用mysqldump来执行“热备份”,这个节点不运行应用程序: mysqldump –opt –skip-lock-tables –skip-add-locks \ –single-transaction –routines > dump.sql 这会影响为应用程序提供服务的节点的性能吗? 或者我可以在其他节点上每2或3小时运行一次吗?

MyIsam引擎的Percona-xtrabackup热备份问题

我们正在使用MyIsam引擎运行,并且在跳过inndb引擎时,Percona-xtrabackup会抛出以下错误[my.cnf skip-innodb]。 我怎样才能解决这个问题,以启用inndb引擎? percona-xtrabackup-2.0.0/bin:# ./innobackupex-1.5.1 –user="root" –password=*** –defaults-file="/etc/my.cnf" –socket=<path>/mysql.sock1 –ibbackup=<path>/percona-xtrabackup-2.0.0/bin/xtrabackup <path>/testbackup/ Percona日志: This software is published under the GNU GENERAL PUBLIC LICENSE Version 2, June 1991. IMPORTANT: Please check that the backup run completes successfully. At the end of a successful backup run innobackupex-1.5.1 prints "completed OK!". innobackupex-1.5.1: Using mysql Ver 14.14 Distrib 5.1.57, for […]

新鲜的12.04安装 – mySQL不启动

我有一个新安装的Ubuntu 12.04 x64服​​务器,我从官方仓库安装了Percona服务器。 麻烦是不会开始! mysql-error.log显示没有什么明显的。 121129 12:16:54 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql/ 121129 12:16:54 [Note] Plugin 'FEDERATED' is disabled. 121129 12:16:54 InnoDB: The InnoDB memory heap is disabled 121129 12:16:54 InnoDB: Mutexes and rw_locks use GCC atomic builtins 121129 12:16:54 InnoDB: Compressed tables use zlib 1.2.3 121129 12:16:54 InnoDB: Using Linux native […]