just a random stat...of the sgw database server

Forum for all general ingame discussion.
User avatar
Forum
Site Admin
Posts: 2844
Joined: Sun Jan 30, 2005 1:52 pm

Honours and Awards

just a random stat...of the sgw database server

since the outage, the server has been up 1hour, 4 minutes, 52seconds ....
this is the stats :)

Query statistics: Since its startup, 1,070,737 queries have been sent to the server.

TOTAL: 1,071,000

ø per hour: 990,400

ø per minute 16,510

ø per second 275.11

this is normal, btw, not some one time deal :) -- numbers were silly big before outage, as the server had been up for 300 days or so.
Don't make me use this!!!
BenjaminMS
Tollan
Posts: 2769
Joined: Sun Mar 05, 2006 6:20 am
Alliance: ~Leaf Village~
Race: Balancer
ID: 1907529
Alternate name(s): TUHD (Bioware forums)
Location: Stuck between real life and the other end of a Stargate

Re: just a random stat...of the sgw database server

I take it the queries are the page requests, and not the amount of unique connections? :)
*wonders how silly big the number would have been of those 3 years*
Image
Currently ingame known as BenMS

Goblin: "I like your boots."
Sorcerer: "That's because you don't have any. The emotion is called envy."
Spoiler
/smile at the green grass,
smile at the sun,
smile at the roses,
before they're gone/


BenjaminMS - 'A thief of roses'
[TL] Renegadze zegt:
yeah definately makes more sense you hitting
and I have no DMU as you keep robbing it
MERC 1 zegt:
shuld not leave it out
any way you cant prove nothing
[TL] Michael/BenjaminMS zegt:
meh Rene, just find a few 0-def farms with 300+ tril DMU out...
MERC 1 zegt:
cool you two take it then i will hit you
User avatar
Forum
Site Admin
Posts: 2844
Joined: Sun Jan 30, 2005 1:52 pm

Honours and Awards

Re: just a random stat...of the sgw database server

db query requests - there might be 1 per page, or 10 per page, depending on the page...
base for example gets you & your stats (1 ) , planets (2), weap stuff (3), alliance wars (4), etc etc.

BenjaminMS wrote:I take it the queries are the page requests, and not the amount of unique connections? :)
*wonders how silly big the number would have been of those 3 years*
Don't make me use this!!!
User avatar
CABAL
Forum Expert
Posts: 1310
Joined: Wed Apr 30, 2008 1:44 am
Alliance: Aquila Ignis
Race: Death Watch
ID: 0
Location: Holy Terra

Re: just a random stat...of the sgw database server

Forum wrote:ø per second 275.11


Heh. I wonder what the mean CPU usage is :shock:
Image
Image

MS-1 -> T-26 -> T-46 -> T-28 -> KV -> KV-3 -> IS -> IS-3 -> IS-4 -> IS-7
User avatar
Forum
Site Admin
Posts: 2844
Joined: Sun Jan 30, 2005 1:52 pm

Honours and Awards

Re: just a random stat...of the sgw database server

during normal use the db server uses 10 to 50 percent of a single CPU.
it has 4 effective CPU (dual-dualcore).
So it peaks around 50/400 or 12.5% total useage :) --although, on turnchange, it can go 5x that... for a few milliseconds at a time.

it helps having a good enough server, and a separate DB server so the web sessions/etc do not affect everyone' s performance.

when we have 'lag issues' it is almost always a sql limitation - ie table lock on query X while query A,B,C....etc all wait for query X



CABAL wrote:
Forum wrote:ø per second 275.11


Heh. I wonder what the mean CPU usage is :shock:
Don't make me use this!!!
User avatar
Atomos
Forum Regular
Posts: 577
Joined: Fri Apr 09, 2010 3:44 am
ID: 1917453

Re: just a random stat...of the sgw database server

Wow @Forum, you sure know your stuff! :smt047 I never learnt a thing about SQL :(
Image
Prior - Prophet - Messiah - Incarnate - LG - LG1 - LG2 - LG3 - LG4 - AG - EAG
- AGL - IAG - TAG - PTAG - LTAG - QTAG - KTAG - GAG - TOE - TUS - TUN - TUK

Ascension complete :)
Kjarkur
Spark of the Ori
Posts: 5342
Joined: Fri Feb 17, 2006 10:30 am
Alliance: DDE - Leader
Race: System Lord
ID: 1909457
Alternate name(s): Kjarkur, JL, KJ
Location: Mutilating enemies of the Empire

Re: just a random stat...of the sgw database server

Nice :-D

Atomos wrote:Wow @Forum, you sure know your stuff! :smt047 I never learnt a thing about SQL :(


Never too late to learn!
There are no men like me. There's only me.
Image
General & Battle Moderator
Image
- > SGW Hall of Fame
Image
- > SGW's Hero of the Year
Image
- > SGW's Villain of the year 2010->
Image
- > SGW's Most Missed Player of the year 2011->
Image
Rottenking
Forum Expert
Posts: 1123
Joined: Wed Aug 30, 2006 6:55 pm
Alliance: The Legion
Race: System Lord
ID: 82082
Location: australia

Re: just a random stat...of the sgw database server

Just out of curiosity, how big is the database? How many mb or gb?
And the size of the combined .php files?
Image
Image
Image
If you cannot convince them, confuse them.
- Harry S Truman
stuff of legends
Forum Expert
Posts: 1217
Joined: Sat May 23, 2009 1:50 am
Alliance: The Legion
Location: China Beijing

Re: just a random stat...of the sgw database server

few Teras i would assume. Would take a heavy load, I'm taking a shot at the Phps and saying it would be 7gb??
Image
Image
User avatar
Juliette
Verified
The Queen
Posts: 31802
Joined: Sun Feb 06, 2005 6:57 pm
Race: Royalty
ID: 4323
Alternate name(s): Cersei Lannister
Location: Ultima Thule

Re: just a random stat...of the sgw database server

*chuckles* No way. It's not that big.
It's being called a lot, does not necessarily contain a lot.
Image
Rottenking
Forum Expert
Posts: 1123
Joined: Wed Aug 30, 2006 6:55 pm
Alliance: The Legion
Race: System Lord
ID: 82082
Location: australia

Re: just a random stat...of the sgw database server

I would guess maybe 100 Mb for php and 500-1024 mb for the database, for main only, not the other stuff.

Would definatly not say terabyte tho
Image
Image
Image
If you cannot convince them, confuse them.
- Harry S Truman
SlimD
Forum Irregular
Posts: 301
Joined: Sat Apr 28, 2007 4:23 pm
Race: Human
Location: Enjoying the real world

Re: just a random stat...of the sgw database server

One way to minimize the DB queries, or updates would to be PUT A MULTIPLIER on the ALLIANCE BANK upgrades..

I can tell you many an ALLIANCE was smashing their keyboards spending NAQ on certain upgrades - a multiplier, even of 5 - 10 would have reduced this by, well 1/5th or 1/10th :)
Cheers,
SlimD - sniffing around the forums
User avatar
CABAL
Forum Expert
Posts: 1310
Joined: Wed Apr 30, 2008 1:44 am
Alliance: Aquila Ignis
Race: Death Watch
ID: 0
Location: Holy Terra

Re: just a random stat...of the sgw database server

Hehe. The PHP should be no bigger than 5mb.
And I'm guessing the db is around about 600-800mb.
My reasoning:
[spoiler]A KoCC is around 2MB I doubt admin has doubled it. So a reasonable estimate would be 3, maybe 3.5mb.
A KoCC db for 10 users is around 3kb. For SGW now, it would be more like 7kb for 10 users. Which is about 560mb, but round that to 600mb just to be safe though there would be quite a few new tables I'd imagine, so give it another 200mb lee-way.[/spoiler]

The only thing which I consider to be 'huge' for SGW, is the bandwidth. Which, tbh, I have no idea.
Image
Image

MS-1 -> T-26 -> T-46 -> T-28 -> KV -> KV-3 -> IS -> IS-3 -> IS-4 -> IS-7
User avatar
caesar2
Forum Addict
Posts: 4129
Joined: Sun Dec 03, 2006 9:25 am
Alliance: The Pirate's Panties Island
Race: [carrot]
ID: 1933254
Location: Slovakia

Re: just a random stat...of the sgw database server

Forum wrote:since the outage, the server has been up 1hour, 4 minutes, 52seconds ....
this is the stats :)

Query statistics: Since its startup, 1,070,737 queries have been sent to the server.

TOTAL: 1,071,000

ø per hour: 990,400

ø per minute 16,510

ø per second 275.11

this is normal, btw, not some one time deal :) -- numbers were silly big before outage, as the server had been up for 300 days or so.


HOLY BANNANNAS!

:shock:
RETURN of the P I R A T E
User avatar
Forum
Site Admin
Posts: 2844
Joined: Sun Jan 30, 2005 1:52 pm

Honours and Awards

Re: just a random stat...of the sgw database server

hard to say, as the 'core' db is about a gig, while the log files, etc are 10gig -- but i store them in parts in separate dbs -- moved out of main db daily.
i try to keep the 'running db' lean...
there are a couple hundred files, ranging 1k to 100k ... again, try to keep lean. i could go with far less files, but hten load times are more.

Rottenking wrote:Just out of curiosity, how big is the database? How many mb or gb?
And the size of the combined .php files?
Don't make me use this!!!
Post Reply

Return to “StarGateWars General”