Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.6 - Create default file for debian init script timeout params (bug1434022) #220

Merged
merged 2 commits into from Nov 2, 2015

Conversation

tplavcic
Copy link
Member

@tplavcic tplavcic commented Nov 2, 2015

BUG:
https://bugs.launchpad.net/percona-server/+bug/1434022

So this is basically to create a /etc/default/mysql file with two variables that user can change if the defaults don't work for him (eg. large buffer pools).
startup_timeout=900
stop_timeout=300
The defaults file is sourced from the init script.

TEST BUILDS:
http://jenkins.percona.com/job/percona-server-5.5-debian-binary/151/
http://jenkins.percona.com/job/percona-server-5.6-debian-binary/58/
http://jenkins.percona.com/job/percona-server-5.6-debian-binary-notokudb/26/

5.5 TEST UBUNTU TRUSTY:
INSTALL:

vagrant@t-ubuntu1404-64:~$ sudo dpkg -i libperconaserverclient18_5.5.45-rel37.4-1.trusty_amd64.deb percona-server-common-5.5_5.5.45-rel37.4-1.trusty_amd64.deb percona-server-client-5.5_5.5.45-rel37.4-1.trusty_amd64.deb percona-server-server-5.5_5.5.45-rel37.4-1.trusty_amd64.deb 
(Reading database ... 103818 files and directories currently installed.)
Preparing to unpack libperconaserverclient18_5.5.45-rel37.4-1.trusty_amd64.deb ...
Unpacking libperconaserverclient18 (5.5.45-rel37.4-1.trusty) over (5.5.45-rel37.4-1.trusty) ...
Preparing to unpack percona-server-common-5.5_5.5.45-rel37.4-1.trusty_amd64.deb ...
Unpacking percona-server-common-5.5 (5.5.45-rel37.4-1.trusty) over (5.5.45-rel37.4-1.trusty) ...
Preparing to unpack percona-server-client-5.5_5.5.45-rel37.4-1.trusty_amd64.deb ...
Unpacking percona-server-client-5.5 (5.5.45-rel37.4-1.trusty) over (5.5.45-rel37.4-1.trusty) ...
Preparing to unpack percona-server-server-5.5_5.5.45-rel37.4-1.trusty_amd64.deb ...
Unpacking percona-server-server-5.5 (5.5.45-rel37.4-1.trusty) ...
Setting up percona-server-common-5.5 (5.5.45-rel37.4-1.trusty) ...
Setting up libperconaserverclient18 (5.5.45-rel37.4-1.trusty) ...
Setting up percona-server-client-5.5 (5.5.45-rel37.4-1.trusty) ...
Setting up percona-server-server-5.5 (5.5.45-rel37.4-1.trusty) ...
 * Stopping MySQL (Percona Server) mysqld
   ...done.


 * Percona Server is distributed with several useful UDF (User Defined Function) from Percona Toolkit.
 * Run the following commands to create these functions:

        mysql -e "CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'"
        mysql -e "CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'"
        mysql -e "CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'"

 * See http://www.percona.com/doc/percona-server/5.5/management/udf_percona_toolkit.html for more details


 * Starting MySQL (Percona Server) database server mysqld
   ...done.
 * Checking for corrupt, not cleanly closed and upgrade needing tables.
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Processing triggers for libc-bin (2.19-0ubuntu6.4) ...

SERVICE STOP/START:

vagrant@t-ubuntu1404-64:~$ sudo service mysql stop
 * Stopping MySQL (Percona Server) mysqld
   ...done.
vagrant@t-ubuntu1404-64:~$ sudo service mysql start
 * Starting MySQL (Percona Server) database server mysqld
   ...done.
 * Checking for corrupt, not cleanly closed and upgrade needing tables.
vagrant@t-ubuntu1404-64:~$ sudo service mysql status
 * /usr/bin/mysqladmin  Ver 8.42 Distrib 5.5.45-37.4, for debian-linux-gnu on x86_64
Copyright (c) 2009-2015 Percona LLC and/or its affiliates
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Server version          5.5.45-37.4
Protocol version        10
Connection              Localhost via UNIX socket
UNIX socket             /var/run/mysqld/mysqld.sock
Uptime:                 7 sec

Threads: 1  Questions: 110  Slow queries: 0  Opens: 48  Flush tables: 1  Open tables: 41  Queries per second avg: 15.714

vagrant@t-ubuntu1404-64:~$ sudo cat /etc/default/mysql 
# defaults file for percona server
startup_timeout=900
stop_timeout=300

5.6 TEST ON UBUNTU TRUSTY

vagrant@t-ubuntu1404-64:~$ sudo service mysql stop
 * Stopping MySQL (Percona Server) mysqld
   ...done.

vagrant@t-ubuntu1404-64:~$ sudo service mysql start
 * Starting MySQL (Percona Server) database server mysqld
   ...done.
 * Checking for corrupt, not cleanly closed and upgrade needing tables.

vagrant@t-ubuntu1404-64:~$ sudo cat /etc/default/mysql
# defaults file for percona server
startup_timeout=900
stop_timeout=300

vagrant@t-ubuntu1404-64:~$ sudo service mysql status
 * /usr/bin/mysqladmin  Ver 8.42 Distrib 5.6.27-74.1, for debian-linux-gnu on x86_64
Copyright (c) 2009-2015 Percona LLC and/or its affiliates
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Server version          5.6.27-74.1
Protocol version        10
Connection              Localhost via UNIX socket
UNIX socket             /var/run/mysqld/mysqld.sock
Uptime:                 1 min 15 sec

Threads: 1  Questions: 111  Slow queries: 0  Opens: 87  Flush tables: 1  Open tables: 80  Queries per second avg: 1.480

Actually had a problem on 5.6 with:
2015-11-02 03:21:43 1930 [ERROR] /usr/sbin/mysqld: unknown variable 'innodb-numa-interleave=1'
2015-11-02 03:21:43 1930 [ERROR] Aborting
But that's because of some upstream merge and the server had actually waited for 15min to timeout while starting which is ok.

Merge branch 'bug1434022-5.5' into bug1434022-5.6

Conflicts:
	build-ps/debian/percona-server-server-5.5.mysql.init
@george-lorch
Copy link
Contributor

I'm no .init expert but this seems good to me, but why 2 commits?

tplavcic added a commit that referenced this pull request Nov 2, 2015
5.6 - Create default file for debian init script timeout params (bug1434022)
@tplavcic tplavcic merged commit 6c7395c into percona:5.6 Nov 2, 2015
@tplavcic
Copy link
Member Author

tplavcic commented Nov 2, 2015

George the second one is from the GCA 5.5 merge (lower branch), but I have put the same comment in the first line so it looks like two identical commits when they are actually not.

@george-lorch
Copy link
Contributor

Ack, that always gets me with git and GCA...

On 11/02/2015 01:15 PM, Tomislav Plavcic wrote:

George the second one is from the GCA 5.5 merge (lower branch), but I
have put the same comment in the first line so it looks like two
identical commits when they are actually not.


Reply to this email directly or view it on GitHub
#220 (comment).

George O. Lorch III
Software Engineer, Percona
US/Arizona (GMT -7)
skype: george.ormond.lorch.iii

@tplavcic tplavcic deleted the bug1434022-5.6 branch November 17, 2015 14:14
laurynas-biveinis pushed a commit to laurynas-biveinis/percona-server that referenced this pull request Nov 19, 2015
5.6 - Create default file for debian init script timeout params (bug1434022)
laurynas-biveinis pushed a commit to laurynas-biveinis/percona-server that referenced this pull request Dec 4, 2015
5.6 - Create default file for debian init script timeout params (bug1434022)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants