Closed (outdated)
Project:
Drupal core
Version:
6.x-dev
Component:
database system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Nov 2010 at 03:53 UTC
Updated:
2 Mar 2016 at 22:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ibeardslee commentedCan't work out how to follow or subscribe to this issue, so making this comment instead.
Comment #2
markir commentedAttached file has counts and total query text length for 1 database over 24 hours.
The total database net traffic for this time is:
statements 1890965
bytes recv 4484517926
bytes sent 11582608376
Over 3G of the 4G recv is composed of:
INSERT INTO cache (cid, data, created, expire, headers, serialized) V ...
UPDATE cache SET data = 'a:511:{s:28:"remember_me_settings_display";a ...
UPDATE cache SET data = 'a:607:{s:13:"filter_html_1";i:1;s:18:"node_o ...
The query text length only counts towards traffic *to* the database from the web server, however one can deduce the likely length of SELECT results rows from the corresponding INSERT or UPDATE ones.
e.g:
SELECT data, created, headers, expire, serialized FROM cache WHERE...
occurred 38583 times, and calculating the avg length from the cache INSERT (140232) suggests that this SELECT above will cause 5410571256 (i.e approx 5G) of the 11582608376 total.
So looks like the various cache* table usage is the major cause of the network traffic.
This begs the question as to why the the cache retrieval data is 10 times larger in size than what is being finally served to the client - are we perhaps SELECTing from the cache several times (e.g about 10) and only using the results once per request?
Comment #3
BrockBoland commentedI'm seeing similar traffic on a client site. I suspect that the DB would still be handling as much data if it were running on a single server, but you might not notice it.
Since much of this traffic is back and forth to cache tables, I'm tempted to try out the Memcache API module (http://drupal.org/project/memcache) to handle Drupal core caching without going back and forth to the DB, but I'm curious if anyone else has found a better way to address this.
Comment #4
siogwah commentedHas anything come of this issue? I've noticed the same.
typical traffic