Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-28, 15:39:30

Author Topic: Optimize Mysql for performance  (Read 4995 times)

0 Members and 1 Guest are viewing this topic.

Offline prgs1971

  • Valuable Member
  • *
  • Posts: 81
  • Karma: +0/-0
    • View Profile
    • http://premium-prestashop-hosting.com
Optimize Mysql for performance
« on: 2013-08-18, 17:49:15 »
I use a Linode VPS with 1.5GB of memory and i want to optimize Mysql performance for it.

This VPS will host only e-commerce stores.

I need InnoBD enabled.

What will be the best setup for it?

Code: [Select]
[root@server]# sh /script/sysinfo

A. Kloxo-MR: 6.5.0.f-2013081304

B. OS: CentOS release 6.4 (Final) x86_64

C. Apps:
   1. MySQL: mysql-5.5.29-1.el6.x86_64
   2. PHP: php53u-5.3.27-1.ius.el6.x86_64
   3. Httpd: httpd-2.2.25-1.el6.x86_64
   4. Lighttpd: --uninstalled--
   5. Nginx: --uninstalled--
   6. Qmail: qmail-toaster-1.03-1.3.27.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.14.mr.el6.x86_64
   7. Dns: bind-9.9.3-4.P2.el6.x86_64

D. Php-type (for Httpd/proxy):

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:          1489       1244        244          0         88        554
   -/+ buffers/cache:        601        887
   Swap:          255          0        255

[root@server]#
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Optimize Mysql for performance
« Reply #1 on: 2013-08-18, 17:50:42 »
Run 'sh /script/mysql-convert --engine=innodb'.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline prgs1971

  • Valuable Member
  • *
  • Posts: 81
  • Karma: +0/-0
    • View Profile
    • http://premium-prestashop-hosting.com
Re: Optimize Mysql for performance
« Reply #2 on: 2013-08-18, 18:20:09 »
So by default innodb is disabled in kloxo?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Optimize Mysql for performance
« Reply #3 on: 2013-08-18, 18:22:15 »
For memory usage reason, mysql use 'myisam' as storage-engine and disable/skip innodb. If you have ram more then 1GB better select innodb. Or Aria if change mysql to mariadb.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline prgs1971

  • Valuable Member
  • *
  • Posts: 81
  • Karma: +0/-0
    • View Profile
    • http://premium-prestashop-hosting.com
Re: Optimize Mysql for performance
« Reply #4 on: 2013-08-18, 18:54:07 »
I don't know Aria ....

Mariadb is not enabled by default?

What is the advantage of using Mariadb?

I am thinking in give a try to Perconna Mysql server ;)
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Optimize Mysql for performance
« Reply #5 on: 2013-08-18, 18:56:45 »
You must edit '/etc/yum.repos.d/kloxo-mr.repo' to make mariadb available.

Googling or use 'search' facility in this forum about mariadb.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline prgs1971

  • Valuable Member
  • *
  • Posts: 81
  • Karma: +0/-0
    • View Profile
    • http://premium-prestashop-hosting.com
Re: Optimize Mysql for performance
« Reply #6 on: 2013-08-18, 19:17:42 »
Thanks for the tip ;)

First i will try to see what are the advantages of using Mariadb.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Optimize Mysql for performance
« Reply #7 on: 2013-08-18, 19:21:32 »
If using Centos 6 better using mariadb from centalt (not from mariadb.org).
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline prgs1971

  • Valuable Member
  • *
  • Posts: 81
  • Karma: +0/-0
    • View Profile
    • http://premium-prestashop-hosting.com
Re: Optimize Mysql for performance
« Reply #8 on: 2013-08-18, 19:54:27 »
Tanks for your advice ;)
« Last Edit: 1970-01-01, 01:00:00 by Guest »

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.031 seconds with 18 queries.

web stats analysis