Re: What should be my PK?
Posted by: Ahmad Sakhi
Date: June 05, 2016 11:40AM

Hello Peter,

Here is some more info. The server is sharing Apache HTTPD + Tomcat along with MySQL DB. The application at this time is in DEV phase and not heavily in use.

[admin@localhost ~]$ free -m
              total        used        free      shared  buff/cache   available
Mem:          15887        2481         315          73       13090       13029
Swap:          2063         731        1332


This is my my.cnf.
[mysqld]
#
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M
#
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
#
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M

datadir=/home/admin/mysql
socket=/home/admin/mysql/mysql.sock

# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

# Recommended in standard MySQL setup
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

[client]
socket=/home/admin/mysql/mysql.sock

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

Key variables:
mysql> SHOW STATUS LIKE "key%";
+------------------------+------------+
| Variable_name          | Value      |
+------------------------+------------+
| Key_blocks_not_flushed | 0          |
| Key_blocks_unused      | 6054       |
| Key_blocks_used        | 6698       |
| Key_read_requests      | 4082424598 |
| Key_reads              | 43658819   |
| Key_write_requests     | 714552544  |
| Key_writes             | 53623089   |
+------------------------+------------+
7 rows in set (0.00 sec)


Any suggestions?

Options: ReplyQuote


Subject
Written By
Posted
May 18, 2016 07:39AM
May 18, 2016 09:42AM
May 18, 2016 09:50AM
May 23, 2016 04:13PM
June 04, 2016 08:53PM
Re: What should be my PK?
June 05, 2016 11:40AM
June 07, 2016 03:52PM
June 08, 2016 08:10AM
June 08, 2016 09:03PM
June 09, 2016 07:55AM
June 13, 2016 01:51AM
June 16, 2016 09:38AM
June 20, 2016 12:45AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.