Mysql Delayed Writes Performance Boost, Worth The Risk

Jul 19, 2007

During my poking around performance tips I found the DELAY_KEY_WRITE option (and innodb_flush_log_at_trx_commit = 0 for innodb)

which supposedly for mysql will disable the immediate disk flush for every transaction written and instead update only once every second at most?

One thing I've never had to restart on my vps is mysql, it's been great. So is this safe to turn on? Am I risking corruption? Will the performance gain be worth it with only a 16M cache?

View 4 Replies


ADVERTISEMENT

Bandwidth Boost Too Much

Aug 16, 2008

I just moved my web server from ISP A to ISP B. There is one thing confusing me.

My real time bandwidth in ISP A shows 1M-1.5M bit per second at peak time before I moved, but after moving, my real time bandwidth report in ISP B shows 5M-7M bit per second. I don't think my traffic grows so fast in just 2 days. After talked to the technician, I realize my monthly bandwidth now grows to about 2000G based on my situation. But, I know my monthly bandwidth was just about 300G just 2 days ago.

I installed iptraf and it shows same report as my real time bandwidth report shows. My site is not downloading site. I also checked server load, it's just less than 0.05, not like a ddos.

View 3 Replies View Related

MySQL 5.0 Performance Better Than 4.1

Jan 7, 2007

I am considering to upgrade to MySQL 5.0. I am using 4.1 at present. Now I wonder if it will really improve performance... I really have some busy databases... Also wonder if 5.0 is fully downwards compatible to 4.1

View 2 Replies View Related

MySQL Performance

May 24, 2007

I have a site that runs from a MySQL database. The database isn't big, it has only 16.1 MB on 17 tables with 103,978 records, and all are properly indexed.

My problem is that my MySQL has a particular problem with this database because I'll have to wait around 5-10 minutes to receive the query results.

I've tuned MySQL, I've tuned Apache and in the daily usage i have usually low Load Averages of 0.19 0.22 0.40. My server specs are Intel P4 at 3GHz with HT, 2Gb of RAM (in dual Chanel), 2 Hdd of 250Gb (backup) and 300Gb (main hdd), both with 16 mb cache. I'm running Debian 3.1 with 2.6 kernel and there is no swapping to disk as i had previous on the 2.4 kernel.

I will post my.conf below and maybe you'll give me a suggestion.

Code:
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "/var/lib/mysql/my.cnf" to set server-specific options or
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# [url]

# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port= 3306
socket= /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket= /var/run/mysqld/mysqld.sock
nice= 0

[mysqld]
#
# * Basic Settings
#
user= mysql
pid-file= /var/run/mysqld/mysqld.pid
socket= /var/run/mysqld/mysqld.sock
port= 3306
basedir= /usr
datadir= /var/lib/mysql
tmpdir= /tmp
language= /usr/share/mysql/english
skip-external-locking
#
# For compatibility to other Debian packages that still use
# libmysqlclient10 and libmysqlclient12.
old_passwords= 1
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address= 127.0.0.1
#
# * Fine Tuning
#
key_buffer= 32M
key_buffer_size= 32M
max_allowed_packet= 16M
myisam_sort_buffer_size = 32M
table_cache= 3072
sort_buffer_size= 4M
read_buffer_size= 4M
read_rnd_buffer_size= 4M
join_buffer_size= 2M
thread_stack= 512K
wait_timeout= 300
max_connection = 60
max_connect_errors= 10
thread_cache_size= 100
long_query_time= 2
max_user_connections= 50
interactive_timeout= 100
connect_timeout= 15
tmp_table_size= 64M
open_files_limit= 3072
max_heap_table_size = 64M
#
# * Query Cache Configuration
#
query_cache_limit= 2M
query_cache_size = 64M
query_cache_type = 1
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
#log= /var/log/mysql.log
#log= /var/log/mysql/mysql.log
#
# Error logging goes to syslog. This is a Debian improvement :)
#
# Here you can see queries with especially long duration
log-slow-queries= /var/log/mysql/mysql-slow.log
log-queries-not-using-indexes = /var/log/mysql/mysql-index.log
# The following can be used as easy to replay backup logs or for replication.
#server-id= 1
log-bin= /var/log/mysql/mysql-bin.log
# See /etc/mysql/debian-log-rotate.conf for the number of files kept.
max_binlog_size = 104857600
#binlog-do-db= include_database_name
#binlog-ignore-db= include_database_name
#
# * BerkeleyDB
#
# According to an MySQL employee the use of BerkeleyDB is now discouraged
# and support for it will probably cease in the next versions.
skip-bdb
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# If you want to enable SSL support (recommended) read the manual or my
# HOWTO in /usr/share/doc/mysql-server/SSL-MINI-HOWTO.txt.gz
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem

[mysqldump]
quick
quote-names
max_allowed_packet= 64M

[mysql]
#no-auto-rehash# faster start of mysql but no tab completition

[isamchk]
key_buffer= 32M
sort_buffer_size= 32M
read_buffer= 16M
write_buffer= 16M

[myisamchk]
key_buffer = 32M
sort_buffer_size = 32M
read_buffer = 16M
write_buffer = 16M

I thought that i might need to start rewriting my code in order to be able to fix things but i need at least another opinion from someone who knows more.

View 9 Replies View Related

NFS- With PHP Writes

Mar 6, 2007

I tried setting up my web server with the user's home directories as a NFS and everything seemed to be working except for one thing I found. When I used php write which I have a couple scripts that do, it can't use fopen with the option "w" which means to trunicate the length to 0 and point at the beginning of the file.

It allows me to use "a" which just writes at the bottom of the file. This is weird because when I login to shell I can delete the files, edit the files, and make files.

It gives me this error....[function.fopen]: failed to open stream: Operation not permitted

httpd 2.0.59, php 4.4.6, userspace nfs, using no_root_squash,sync,no_all_squash,rw in the exports.

View 0 Replies View Related

MySQL Performance Benchmarks

Jun 15, 2009

I have published 2 articles about MySQL benchmark results. They can be viewed here:

- super-smack: [url]

- sql-bench: [url]

If you have any results to compare, please let me know, either here or via comments.

View 5 Replies View Related

HD Performance With MySql On 2nd Drive

Aug 5, 2008

question regarding hard disk performance.

Right now i have a busy running forum Running on a Single Xeon 5335 with 4GB of RAM,

single 73GB SCSI 15K. And the site seems running fine most of the time except at peak.

The load sometime goes up to 8 for about 1 hour. So i am looking to upgrade my server.

The next server i am thinking about is

Single C2Q 9300, 8GB of RAM, 1x750GB SATAII as primary drive for for webserver, 1x150GB Raptor 10K to serve MYSQL only.

I wonder if the HDD performance on my current server server with future server be the same of better? Since the future server has better CPU and RAM, the only thing i worry is the HDD performance.

So in short, Single SCSI 15K V.S Combination of SATA + RAPTOR. What do you guy think?

i am using Litespeed as webserver and i also will be using litespeed on future server.

View 10 Replies View Related

Performance Gain In PHP 5 And MySQL 5

Nov 26, 2007

I was wondering if there is a significant performance gain if you use PHP 5.25 and MySQL 5x instead PHP 4.47 and MySQL 4.22?

Let's say that the scripts to be used are all compatible to the said versions.

View 3 Replies View Related

MySQL Performance Regression

Nov 8, 2007

I've decided to give VPS a shot. So...

I'm runnning the same query on a 1 & 1 VPS, where the MySQL server is local, and on a 1 & 1 shared server (where the MySQL server is remote).

The MySQL version on the VPS machine is 4.1, while on the shared server it's 4.0.

The exact same query takes 20x longer (!) on the VPS.

View 7 Replies View Related

PHP And MySQL App To Test Host Performance

Jan 26, 2008

I have the hatchling plan on HostGator. Is there a PHP and MySQL open-source application where I can put up there to test its performance on running PHP and MySql applications? I want to see if there is any performance issue on this host before migrating a large ZenCart app to it.

What are people's experience on HostGator running PHP and MySQL?

View 6 Replies View Related

Improving Performance On IIS - PHP And MySQL Apps

Sep 21, 2007

I'm having some performance issues on IIS with my PHP and MySQL applications. I'm also starting to see some errors.

One of my main apps is vBulletin. I've tried posting there for help, but not many people there have experience with IIS.

See this thread:
[url]

View 8 Replies View Related

Best Processor For Superior Mysql Performance

Feb 4, 2007

Which Is better and would give me better mysql Performance since mysql eats up huge amounts of CPU and RAM.

AMD 64Bit 3200 Or a Intel Core 2 Duo 1.86 GHz

I know theres many other factors involved but I need to know which processor would perform better with mysql.

View 4 Replies View Related

Shared Hosting With Good Mysql Performance

Jun 7, 2008

I'm going to be rolling out a php/mysql driven site soon and I'm pretty much resigned to the fact that the mysql performance dreamhost has given me isn't going to cut it, its probably too oversold. Simple one table one column selects can take 30 seconds or time out depending on how badly the server is being hammered. HTTP requests are usually snappy, but the mysql performance is bogus.

What is a good host for me to launch this site with? Storage wouldn't need to be too terribly high, at least initially. I'm tempted by MediaTemple's slick marketing, but I've seen on here that some people have had poor sql performance (contrary to what some personal friends have experienced, so I'm torn). I was reading about downtownhost on here, but their load times seemed slow when I hit a couple domains listed on here that are hosted by them.

This host needs to be located in the US. Honestly, I like dreamhost and their panel, save for the sql sluggishness I'm getting.

View 14 Replies View Related

Paypal IPN Emails Delayed By 2 Days

Oct 20, 2008

I have just recently moved a site over to my VPS, everything is working fine except for Paypal IPN Emails which arrive in my inbox 2 days after the sent timestamp, I have had 5 which have come through on time, this has led me to think it may be a problem with my VPS settings, however the host SolarVPS have checked the logs and can see nothing wrong, and have asked me to speak with Paypal as they are unable to explain it. I just wondered if anyone here has seen a problem like this, where it only affects one sender.

I have looked to see if others have had this from Paypal before, and seen many issues but not this one in particular.

View 0 Replies View Related

Delayed Mail :: Cpanel / Centos

Jan 17, 2008

Reported of this :

HOTMAIL>

This is the only message I receive when I send an email to myself from Hotmail to customerdomain.com


Delivery Status Notification (Delay)þ From: postmaster@mail.hotmail.com Sent: Thu 1/17/08 10:33 AM To: user@hotmail.com
________________________________________

This is an automatically generated Delivery Status Notification.

THIS IS A WARNING MESSAGE ONLY.

YOU DO NOT NEED TO RESEND YOUR MESSAGE.

Delivery to the following recipients has been delayed.

user@customerdomain.com

--Forwarded Message Attachment--
From: user@hotmail.com
To: user@customerdomain.com
Subject:
Date: Wed, 16 Jan 2008 22:32:48 +0000

********************

Why would it be delayed? I'm using cpanel / centos

Possibly too much mail in queue or something else?

View 0 Replies View Related

Queue Manage And Delivery Delayed

Mar 11, 2007

2 question about email queue manage under WHM (exim mta)

1. how is possible do manage time that email with error delivery must stay in to queue ?

I have more massage for 3 or 4 day in queue.

Is possible to setting this for stay less time into queue?

2. If queue is set to run any 10 minutes this mean that when queue run try to sending also old delayed error (3/4 days) any 10 minutes?

View 7 Replies View Related

Disk Writes Extremely Slow On SATA RAID

Jan 10, 2008

I'm running into a problem with a relatively new (2 months old) server. I have just a few accounts on it, and I'm already noticing unusual loads, for the... load. After some benchmarking with bonnie++ (and plain old "dd") there is clearly a problem.

Version 1.03b ------Sequential Output------ --Sequential Input- --Random-
-Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP
SERVER NAME 2G 9096 16 7725 2 2543 0 20609 32 621627 55 +++++ +++

Isn't a write-speed over 7MB/s reasonable to expect? Also look at the low CPU times...

Anyway running the same test on a similar but older AND busier server showed much better results than this. In fact dd'ing a 1GB file from /dev/zero "finished" in about 10 seconds but then pegged the server at 99% iowait (wa) for a full three minutes (until done being written from cache I assume), bringing load to 15.00

That's all the info I have so far... the data center just replaced the card (which gave no errors) with no effect. Running these benchmark tests is about the extend of my hardware experience.

View 8 Replies View Related

What Kind Of Harddrive Read And Writes Speeds Should Be Expected

May 15, 2007

I have a windows 2003 VPS and I'm not satisfied with the HD I/O speed, and before I mention what speeds I am getting I just want to see what people say should be plausible. I want to know if I am thinking I should get more out of the VPS then I really should.

Anyway, I used this program from ATTO to benchmark:
short-media.com/download.php?d=108
Called ATTO Disk Benchmark

If anyone is willing, run it on your VPS and post a screenshot. It's a standalone .exe, no install needed.

View 12 Replies View Related

Is My Domain Name At Risk

May 28, 2007

my domain name expires in July (within 90 days).

It is currently with company A who charge quite a lot to keep it there. I want to move it to company B who are my hosts and with whom I get 1 free domain name.

One added complication is that the domain is in a friends name, but I have logon and can change name to my own any time I want.

Company B said "After it is on our registrar, you will be the only one that can renew it as long as it doesn't expire for longer than 90 days."

This has me worried that because I haven't renewed it withing 90 days that it can be stolen from me. Have I misunderstood or is this a risk?

If so would I be better advised to renew it in my friends name wth company A?

View 10 Replies View Related

How Big Risk Do I Take If I Don't Update The Kernel?

May 2, 2008

I'm a Windows guy and can little or nothing about Linux. How big risk do I take if I'm using a Linux VPS and never update/patch the kernel?

I'm using CentOS 5 and LxAdmin. I can update the control panel, but I can not update/patch the kernel since I have no knowledge how I do that.

I'm using a unmanaged plan, so no help there.

Some of my sites are running Wordpress, but I'm always using the lates WP installation. I not using any other plugins that WG2, Gallery2, and remove max width.

Nobody except me have access to the VPS, and I have no other FTP accounts or something like that on the VPS.

I have no other scripts or any kind of dynamic pages on my VPS.

What kind of risk do I have here?

I'm currently having plans to cancel my second VPS that's using Win2003, and only use Linux in the future. I can cut my monthly expensive with 50% that way, but do I take a big risk doing it that way?

View 9 Replies View Related

Crypt_blowfish, Any Risk In Installing

Sep 11, 2007

A customer has requested we install a pear package called crypt_blowfish for there website which sells items.

What exactly is it? Is there any risk in installing the extension?

Ive not heard of it myself before

View 4 Replies View Related

Hosting A High Risk Site

Mar 25, 2009

What sort of redundancy that is recommended for a high risk site?

My definition of high risk is it will attract more hackers than usual, more DDOS, chances of blocked by ISP and etc.

View 4 Replies View Related

JaguarPC Performance VS. LiquidWeb Performance

Jul 13, 2007

I am using dreamhost host 3 of my web sites and 1 blog. Dreamhost is great, offers alot space and bandwidth.

but I think they are oversellling their space, sometimes it gets really slow. (overselling ? ok, I dont really know, but sometimes its really slow, and most my asian readers said need to refresh to load the page. I am wondering if theres a way to check if they are overselling or not.)

I am thinking about buying vps, even tho, I still got 5 month left with dreamhost.

I found 2 vps companies are highly recommanded on this forum, JaguarPC and LiquidWeb.

theres already a post compared both companies in terms of price and service. I say I will pick JagarPc, cuz, its basic plan just 20 USD, and htey got promotion now, its even cheaper. and basic Liquidweb vps plan is 60 bucks.

I am wondering why Jagarpc is so cheap , are they overselling? how can we check if they are overselling.

I found a few posts saying how good jaguarPc is. and they are not overselling, but those members just signed up this month, and only have 1-3 posts. I cannot really trust those new members.

Can someone share their experience with JaguarPC? compare JaguarPc performance and liquidweb performance. antoher question is switch from dreamhost to JaguarPC basic vPS plan, will performance gets better?

last question: VPS account allows 3 IP, 3ip = 3 domains? if not, how many domains can I have?

View 14 Replies View Related

Moving SSH Back To Port 22 But Will Root Be At Risk

Apr 26, 2008

At present I run SSH on a different port then normal to protect root. This has worked for two years, but with discovering that cPanel finally support SFTP without shell access needed, I want to finally turn off FTP and require SFTP. The problem is the port I am using. Since it's a random port I have been secured against root attacks (well nothing has shown up). I am with LiquidWeb which is fully managed. So I guess they take care of allot of prevention.

This is what I am thinking of doing. move SSH back to port 22 (I only host a few friends sites and want to be hosting 20 accounts by end of year to cover my costs). Then disabled root password and require SSH keys. Would this be strong as secure as running SSH on a high #port or am I fooling myself.

I could also add in for good measure restricting root SSH/SFTP (yes I prefer SFTP for file management as I am legally blind and using Transmit+BBEdit is allot easier for me for editing files). The problem with restricting to certain IP's, is that Shaw charges $30/month more for a static IP and I also am at my moms 25% of the time (and she is also with Shaw). I think the XXXX.vs.shawcable.net is static but I am not 100% sure.

I really do want to kill FTP so that only port 80 is the only non SSL port open.

View 14 Replies View Related

Security Risk To Share Phpinfo File

Mar 10, 2007

There are always people who would like to know what the php settings are on the server. Is it a security risk to share the phpinfo.php file on a website, with anybody who visits that website, able to view it?

View 4 Replies View Related

Security Risk Having Mbstring And Mysqli Installed On Your Server

Mar 20, 2008

A friend of mine owns a hosting company and a client of his asked to have mbstring and mysqli installed. What he wants to know is , is there any security risks if he does install that on his server?

Also, he wants to know, if there is not, what how does he go about installing that on the server?

View 4 Replies View Related

Writing Large Files - Risk Of Damaging Filesystem

Jan 19, 2008

Does writing large files (ie, 10GB backups in one archive) cause any risk of damaging a linux filesystem?

View 1 Replies View Related

PC World Article: Reduce Fire Risk - Remove Oxygen [merged]

Mar 19, 2007

I did a quick search on this and could not see it as already being posted

It seems quite a clever but simple idea - remove a lot of the oxygen from the air to help reduce the risk of fire. What do those of you operating your own facilities make of this? Is anyone already doing this?
[url]

View 14 Replies View Related

Plesk Automation :: Postfix CA Bundle File Under PPA - How To Edit Without Risk Of It Being Overwritten

Aug 19, 2013

I see in the maillogs a number of errors lots of different Certificate Authorities - and some I really did NOT expect to see here:

[root@web48002 admin]# grep ' certificate verification failed for' /usr/local/psa/var/log/maillog | wc -l
998
[root@web48002 admin]# grep ' certificate verification failed for' /usr/local/psa/var/log/maillog | head
Aug 19 00:04:45 web48002 postfix/smtp[28115]: certificate verification failed for inbound.hsaforamerica.com.netsolmail.net[206.188.198.64]:25: untrusted issuer /C=US/O=Equifax/OU=Equifax Secure Certificate Authority

[Code] ....

How/where do we edit our CA file under Postfix - and why is the standard one installed by PPA not including some of these VERY MAJOR CAs?!?

I would like instructions on how to edit this in a manner that it will not get overwritten by some PPA update or yum update.

View 3 Replies View Related

Does Rackspace Worth To Buy?

Jan 2, 2009

I want to buy Rackspace dedicated server service, but after I search at WHT, I found some said it good and some said it not good.

If I want to don't worrired about security issues. Would you recommand me chose Rackspace? Or do you have any recommand provider?

View 5 Replies View Related

Rackspace Worth The $$?

Dec 10, 2008

Rackspace worth the $$?

The name, service and reputation is excellent but their prices seem to be much higher than similar services at other reputable providers.

The client looking at rackspace MUST have a reliable server, backups and security. These are not optional.

Is rackspace worth the extra dollars? Buying peace of mind or buying the name?

View 3 Replies View Related







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