Large Server: Get Rigth Setting For Mysql My.conf

Nov 10, 2007

on optimizing mysql

My server specs:

Quote:

Server: Quad Processor Quad Core Opteron 8344 - 1.80GHz - 16 x 512KB cache
Ram: 8 GB DDR2 Registered 667
Disk Controller: SA-SCSI RAID 1 Disk Controller
First Hard Drive: 147GB SA-SCSI 10K RPM
Second Hard Drive: 147GB SA-SCSI 10K RPM

my.conf file:

Quote:

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
skip-locking
skip-innodb
query_cache_limit=1M
query_cache_size=32M
query_cache_type=1
max_user_connections=25
max_connections=500
interactive_timeout=10
wait_timeout=10
connect_timeout=10
thread_cache_size=128
key_buffer=16M
join_buffer=1M
max_allowed_packet=16M
table_cache=1024
record_buffer=1M
sort_buffer_size=8M
read_buffer_size=8M
max_connect_errors=10
thread_concurrency=16
"/etc/my.cnf" 57L, 893C
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
skip-locking
skip-innodb
query_cache_limit=1M
query_cache_size=32M
query_cache_type=1
max_user_connections=25
max_connections=500
interactive_timeout=10
wait_timeout=10
connect_timeout=10
thread_cache_size=128
key_buffer=16M
join_buffer=1M
max_allowed_packet=16M
table_cache=1024
record_buffer=1M
sort_buffer_size=8M
read_buffer_size=8M
max_connect_errors=10
thread_concurrency=16
myisam_sort_buffer_size=64M
server-id=1

#[mysql.server]
#user=mysql
#basedir=/var/lib

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/lib/mysql/mysql.pid
open_files_limit=8192

#[mysqldump]
#quick
#max_allowed_packet=16M

[mysql]
no-auto-rehash

[isamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M

[myisamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M

[mysqlhotcopy]
interactive-timeout

is this good enough or we could fine tunning it more?

View 2 Replies


ADVERTISEMENT

Need The Best Setting (httpd.conf And My.cnf )

Oct 17, 2007

Processor InformationProcessor #1 Vendor: GenuineIntelProcessor #1 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #1 speed: 2000.219 MHzProcessor #1 cache size: 4096 KBProcessor #2 Vendor: GenuineIntelProcessor #2 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #2 speed: 2000.219 MHzProcessor #2 cache size: 4096 KBProcessor #3 Vendor: GenuineIntelProcessor #3 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #3 speed: 2000.219 MHzProcessor #3 cache size: 4096 KBProcessor #4 Vendor: GenuineIntelProcessor #4 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #4 speed: 2000.219 MHzProcessor #4 cache size: 4096 KBProcessor #5 Vendor: GenuineIntelProcessor #5 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #5 speed: 2000.219 MHzProcessor #5 cache size: 4096 KBProcessor #6 Vendor: GenuineIntelProcessor #6 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #6 speed: 2000.219 MHzProcessor #6 cache size: 4096 KBProcessor #7 Vendor: GenuineIntelProcessor #7 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #7 speed: 2000.219 MHzProcessor #7 cache size: 4096 KBProcessor #8 Vendor: GenuineIntelProcessor #8 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #8 speed: 2000.219 MHzProcessor #8 cache size: 4096 KB
4GB RAM
150G Disk

View 1 Replies View Related

Apache :: Setting Up Vhosts In Conf File

Mar 15, 2013

I work for a start up as well as do independent consulting. I had a friend set up my apache server initially for the start up. It's been running fine. Now I want to host a client's site on the same server. I tired just adding a vhost section at the bottom of the conf file, but it said that I was running two sites off the same port. I tried manipulating the stuff my buddy did for me for the first site, then putting two vhosts on the bottom, but that just didn't work.

View 5 Replies View Related

How To Turn Off Keepalive Setting In Httpd.conf Didn't Work..

Jul 1, 2009

So why does it still say Connection: Keep-Alive? I know that if its off, it should say Connection: Closed. And where did the timeout=1 and max=100 come from?

My httpd.conf
Timeout 90
KeepAlive Off
KeepAliveTimeout 15
KeepAliveRequests 10

HTTP headers is reporting
Keep-Alive: timeout=1, max=100
Connection: Keep-Alive

View 2 Replies View Related

Mysql.server Setting

May 17, 2008

Running CentOS 4.6. Currently, the my.cnf contains:

Code:
[mysql.server]
user=mysql
basedir=/var/lib

If I moved all files and directories under /var/lib/mysql/ to /harddisk3/mysql/ what do I enter for the basedir path?

View 5 Replies View Related

Large MySQL Migration

Feb 2, 2008

I wasn't sure where to post this so here goes, I need to migrate a MySQL DB, in the past I have just created an SQL file and used that method (sometimes having to split the SQL file up) but now the DB is about 50 meg and 733,233 records.

Is there an easier way to migrate the Database from one server to another?

View 8 Replies View Related

Optimizing Large MySQL Table

Nov 2, 2009

I optimized a mysql table of 2 million records and about 500MB.. it took about 15 minutes.. However, on the same DB now i have another huge table of 88 million records, it size is 2.2 GB and it has about 30 MB to optimize... my questions..

1.- How can I speed up the optimization process so it can take the less possible time? any tweaks to my.cnf?

2.- Should I repair it using phpmyadmin or just from the shell?

3.- Should I stop http traffic during this optimization?

This is a dedicated db mysql server that handles a large VB forum with 5-8 users online average:

Code:
Intel Xeon 3.2 x4 procs, 32 bits, 4 GB ram
/etc/my.cnf

Code:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
skip-locking
skip-innodb
skip-bdb
query_cache_limit=1M
query_cache_size=48M
query_cache_type=1
max_connections=1200
interactive_timeout=100
wait_timeout=300
connect_timeout=10
thread_cache_size=128
key_buffer=48M
join_buffer=8M
max_allowed_packet=16M
table_cache=2036
sort_buffer_size=1M
read_buffer_size=1M
read_rnd_buffer_size=2M
max_connect_errors=10
# Try number of CPU's*2 for thread_concurrency
thread_concurrency=4
myisam_sort_buffer_size=64M

# Add
max_heap_table_size = 48M
tmp_table_size = 48M
low_priority_updates=1
concurrent_insert=2

[mysqldump]
quick
max_allowed_packet=16M

[mysql.server]
user=mysql
#basedir=/var/lib

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
log-slow-queries=/var/log/slow-queries.log

On the other side, i have the same hardware for the webserver..

View 2 Replies View Related

Importing Large Mysql DB In Shell

Dec 20, 2007

if there was a way for me to cut up a large mysql database in shell. We're talking almost 8 gigs here.

I would like to import it in chucks, something like 1 gig per shot. Is that doable with some software that I can use in shell? I wouldn't want to use vim to splice up that sucker.

Or is there a better method of doing this? I already dumped this and I rather not do it again unless if I could perhaps dump this in chunks.

View 1 Replies View Related

DNS Issues Rndc.conf & Named.conf

Apr 8, 2009

It started with this error:

Bind reloading on server01 using rndc zone: [ns1.mydomain.net]
Error reloading bind on server01: rndc: connect failed: 127.0.0.1#953: connection refused

so i did the obvious checked the csf firewall to see if port 953 was enabled and it was

so i took a look at rndc.conf

Code:
root@server01 [~]# nano /etc/rndc.conf
#start of rndc.conf
key "rndc-key" {
algorithm hmac-md5;
secret "KLGSBmWZrev0I4fR4Tm4GXxdcYSTFzF23b1f9is1M=";
};

options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 953;
};
# End of rndc.conf

# Use with the following in named.conf, adjusting the allow list as needed:
#key "rndc-key" {
# algorithm hmac-md5;
# secret "KLGSBmWZrev0I4fR4Tm4GXxdcYSTFzF23b1f9is1M=";
#};
#
# controls {
# inet 127.0.0.1 port 953
# allow { 127.0.0.1; } keys { "rndc-key"; };
# };
# End of named.conf
Then i took a look at named.conf

Code:
options {
/* make named use port 53 for the source of all queries, to allow
* firewalls to block all ports except 53:
*/

//query-source port 53;

/* We no longer enable this by default as the dns posion exploit
has forced many providers to open up their firewalls a bit */

// Put files that named is allowed to write in the data/ directory:
directory "/var/named"; // the default
pid-file "/var/run/named/named.pid";
dump-file "data/cache_dump.db";
statistics-file "data/named_stats.txt";
/* memstatistics-file "data/named_mem_stats.txt"; */
};

logging {
/* If you want to enable debugging, eg. using the 'rndc trace' command,
* named will try to write the 'named.run' file in the $directory (/var/named").
* By default, SELinux policy does not allow named to modify the /var/named" directory,
* so put the default debug log file in data/ :
*/
channel default_debug {
file "data/named.run";
severity dynamic;
};
};

// All BIND 9 zones are in a "view", which allow different zones to be served
// to different types of client addresses, and for options to be set for groups
// of zones.
//
// By default, if named.conf contains no "view" clauses, all zones are in the
// "default" view, which matches all clients.
//
// If named.conf contains any "view" clause, then all zones MUST be in a view;
// so it is recommended to start off using views to avoid having to restructure
// your configuration files in the future.

view "localhost_resolver" {
/* This view sets up named to be a localhost resolver ( caching only nameserver ).
* If all you want is a caching-only nameserver, then you need only define this view:
*/
match-clients { 127.0.0.0/24; };
match-destinations { localhost; };
recursion yes;

zone "." IN {
type hint;
file "/var/named/named.ca";
};

/* these are zones that contain definitions for all the localhost
* names and addresses, as recommended in RFC1912 - these names should
* ONLY be served to localhost clients:
*/
include "/var/named/named.rfc1912.zones";
};

View 5 Replies View Related

Setting Up MySQL

Apr 12, 2007

I am setting up Geeklog and I have this question:

$_DB_host = 'localhost'; // host name or IP address of your DB server

What should I put as a 'localhost'?

1) domain.com

2) IP address of domain.com

3)?

where it says Database server IP, I don't know if that is the same IP of my domain name or how to find out the DB server IP

View 2 Replies View Related

MySQL - Setting Up Languages

Jun 1, 2007

I have a script that pulls information from a mysql database. The script pulls information on english, spanish and portuguese.

There are some spanish and portuguese characters that are not displayed correctly.

How can I setup MySQL database to correctly display those characters:

These are some of the wierd portuguese characters displayed:

nós, e foi. Nós jÃ

View 6 Replies View Related

How To Setting Mysql Date/time

Mar 5, 2007

how to setting mysql data / time?

server have -9 H from our

We have setting under WHM for time server but we also need to setting mysql

View 1 Replies View Related

Setting Root Password MySQL

Dec 18, 2007

I can't seem to get passed p21 of Database Driven Website by Kevin Yank. But I'm learning

Ive got the latest copy and and want to follow it through to see what i can learn (lots I'm sure)

Im on a mac osx and am trying to set the root password. He says to do this using terminal in the bin directory of my MySql installation.

Where is it? i know basics about getting round terminal i.e changing directories and stuff.

View 4 Replies View Related

Setting Up Free Email Service And Storing Mails In MySQL

Feb 14, 2007

I have a busy dating website with 30 000 registered users and ~200-600 users online all the time. I would like to offer free email with ~10 MB mailbox to all users.

I have an idea to use scripts provided by b1gmail.de. Its similar to Hivemail or Socketmail. It uses only one POP3 catch-all mailbox and stores all emails in MySQL database, including attachments.

My worries are about MySQL. If I have 30 000 users and each user has some 5000 messages in his/her mailbox:
30 000 x 5 000 = 150 000000

That's 150 million rows in one table!

I know, not all users will have 50000 messages in their mailboxes, but the number of users increases about +2000/month.

I can't imaggine how long time will need MySQL to find messages for each user in the table with 150 000000 rows.

I don't know - maybe it's not a problem at all. I just never had such large tables and I don't know if it's possible at all.

Another problem: I have Fedora Core 2 installed and even don't know yet if it supports files larger than 2 GB.

Maybe it's better to set-up normal POP3 mailboxes for all users instead of using one catch-all box and storing data in MySQL?

do not post warnings about spammers. In the beginning I'll provide email addresses only to "gold" members. I opened this thread because I don't want to set-up a system which will hang after a couple of months because MySQL will not be able to handle it or I will have other unknown problems.

View 4 Replies View Related

Server Optimisation Request (httpd.conf - My.cnf )

Feb 20, 2007

My Dedicated server is being slow - hopefully someone can give a helping hand

Processor: AMD Single CPU Dual Core Athlon 4200
Memory: 2048MB RAM
Primary Hard Drive: 160GB
Operating System : CentOS 4.x X86_64 Bit
Control Panel: CPanel
uplink port: 100

Apache version 1.3.37
php 4.4.4

View 9 Replies View Related

Exim.conf Missing (cpanel Server)

Jan 7, 2007

Broadcast message from root (Sat Jan 6 15:52:08 2007):

cPanel Layer 2 Update Commencing

Broadcast message from root (Sat Jan 6 16:01:09 2007):

cPanel Layer 2 Install Complete

I got this message while leaving my computer on over the weekend. And suddenly find that my mail server aint' working. So i tried to restart exim

root@kuching [~]# service exim restart
Shutting down exim: [FAILED]
Shutting down antirelayd: [ OK ]
Shutting down spamd: [ OK ]
Starting exim: 2007-01-07 20:47:43 non-existent configuration file(s): /etc/exim.conf
[FAILED]
Starting exim-smtps: 2007-01-07 20:47:43 non-existent configuration file(s): /etc/exim.conf
[FAILED]
Starting antirelayd: [ OK ]
Starting spamd: [ OK ]

I tried to reinstall exim by # /scripts/exim4 --force

It doesn't work again, so I tried to update again # /scripts/upcp --force

View 13 Replies View Related

Domain Name Server (DNS) - Resolv.conf Resetting After Reboot

Apr 23, 2007

I have a VPS (ConetOS 4.4, OpenVZ), it all works fine, however on reboot, the resolv.conf gets reset to some nameservers that are no longer in use, How do I change this so after a reboot it uses the nameservers I am using now?

My current resolv.conf looks like this:

nameserver 85.234.133.209
nameserver 85.234.144.209

View 2 Replies View Related

Transferring Large Amounts Of Data From Server To Server

Jan 11, 2007

Recently I changed server providers, so now I'm looking for a way to transfer all the data to my new server. I have a total of 420GBs of files in my secondary HDD that need to be transferred.

The old server is at a 10Mbps line, the new one is at a 100Mbps one. From old server, less than half the pipe is being actively used. So theoretically, I should be able to transfer it all in about a week.

I tried
1) SCP. That was waaay too unreliable. And I couldn't get it to restart from the point left on whenever the transfer stopped (like when the servers were restarted).

2) Transfer using a web script. Way too slow, got to about 35GBs, total would take like 2 months.

Is there any other, reliable way of transferring data from server to server?

View 9 Replies View Related

To Transfer A Large DB To Another Server

Jan 31, 2007

to transfer a MySQL database with way over 1 million rows to a different server.

What is the best way to do this without losing any data? I've tried using the export feature in phpMyAdmin but it doesn't seem to handle it very well.

There has to be a feature in WHM or cPanel,

View 2 Replies View Related

Transfer Large Many Files From Server To Server

Oct 23, 2009

In reference to my previous post, i want to tranfer accross 7GB of data, approximatly 80,000 files i believe it is (due to a gallery script).

It's currently on another host (on a webhosting account) which uses their own control panel which has no options but to manage databases, the only way i can see to do this is via FTP but it'll take me days. I've tried using compressing and backup scripts, but the damn execution time on the hosts server is too low to allow the files to be zipped. Are there any ways? Can i login to my VPS via SSH and anyhow pull off the files from the other hosts server?

View 6 Replies View Related

Unlimited Or Large Bandwidth Server In USA And Canada

Jan 12, 2009

I'am looking for a dedicated server located in USA and Canada (one in US and one in Canada) with unlimited or large (5-10TB) bandwidth on 100mbit port ....

View 11 Replies View Related

Large VBulletin Site -- What Should I Look For In A Server Setup

Apr 17, 2009

I run a large adult vBulletin community with 70,000 members, 1/2 million posts, 186,000 attachments (a lot video), and closing in on 100 million downloads since our start some odd years ago. I've been battling keeping the site up for quite some time, and I am starting to wonder whether we shot too low on the server setup. I figure I would ask the pros here at WHT for some advice.

This is our current setup:

Site server:

Quote:

CPU: Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz
4 Gig ram
250 Gig sata harddrive
Unix FreeBSD 6.2
Apache

MySQL server:

Quote:

CPU: Pentium III/Pentium III Xeon/Celeron (2666.62-MHz 686-class CPU)
Cores per package: 4
4 Gig ram
750 Gig SATA harddrive
Unix FreeBSD 6.4
Apache

Do you think the site would perform better under one server and maybe a more powerful processor? What should I be looking at exactly as far as hardware goes for this type of site. I should note we push about 2.5TB of bandwidth monthly.

View 14 Replies View Related

Server For Send Large Number Of Emails Per Day?

Jun 7, 2009

server for send large number of emails per day?

What would be the best solution for that?

VPS ? Dedicated ? and Do I need to have Cpanel too?

View 6 Replies View Related

Dedicated Server With Very Large Storage Capacity

Mar 8, 2008

I have found SL can offer you 12*1 TB drive based systems, after RAID-5 and Win 2003 install you get just over 10 TB of storage. The monthly price works out to $1000/Month.

I know some time ago LeaseWeb offered these type of storages....any one else know of any others ?

Amazon S3 works out to about $1500 for 10 TB

View 2 Replies View Related

Server Crash While Repairing Large Database

Oct 12, 2007

for months my server has been running fine, since about a week ago the server crashed and was up and down

the fault was found to be faulty ram which has been replaced.

now I have had every tom, dick & harry take a look at the server to get it stable again but im still having issues.

The server seems to run fine but crashes when I try and repair or backup my database.

the database is large like 30gig but the server used to do this fine before but it wont now, it get so far then hangs.

Server:
Dual Core Xeon
4GB Ram
2x 250GB HDD
Raid 1

View 6 Replies View Related

Dedicated Server For Large Scale Legitimate Email Marketing

Apr 4, 2009

my main client wants to rehash his database. Now this is a 1.5m strong list. All legitimately collected with time/IP stamp, privacy policy, etc. These clients are from the online gambling industry (legally licensed).

The problem is many of these users subscribed to our services up to 4 years ago (not all are that old, but some are), and they haven't heard from us for up to 2 years (again, some heard from us more recently).

Anyway, I've never deal with that number of emails and potential bounces. Obviously, the first round of emailing will have a large number of bounces, but that will quickly subside.

So, can you guys point me to a quality dedicated server, with at least 4 IPs (hopefully 10) and that can handle this type of activy? I'll be glad to sign up under an affiliate link if I can get a good answer.

View 9 Replies View Related

Server Hosting For Medium To Large Online Retail Site

Mar 31, 2009

My company is going to launch four online retail site and in need for a dedicated server service provider that can provide us with room to grow from minimal traffic to possibly 2-5k traffic an hour.

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved