Play Now Login Create Account
illyriad
  New Posts New Posts RSS Feed - TOURNAMENT -- SHINE A LIGHT ON NF.
  FAQ FAQ  Forum Search   Register Register  Login Login

TOURNAMENT -- SHINE A LIGHT ON NF.

 Post Reply Post Reply Page  <1 34567 19>
Author
 Rating: Topic Rating: 1 Votes, Average 5.00  Topic Search Topic Search  Topic Options Topic Options
kodabear View Drop Down
Postmaster General
Postmaster General
Avatar
Player Council - Astronomer

Joined: 18 Jun 2013
Location: Lucerna
Status: Offline
Points: 1237
Post Options Post Options   Thanks (0) Thanks(0)   Quote kodabear Quote  Post ReplyReply Direct Link To This Post Posted: 13 Jun 2016 at 17:05
a few people have asked my why there was a large jump in Bandwidth. 

May 2016 and Jun 2016
17 May 2016 to 23 May 2016 we had 3 table that were joined together to make up the information that is shown on the Tournament stats page and due to time out issue we limited how much can be shown on the main page.
24 May 2016 to part of 02 Jun 2016 we had fixed the issue where it would time out (see Digioso post above for more information). Since the time out issue was fixed we had the main Tournament stats page showing all the combats that have happen since the start.

part of 02 Jun 2016 to now. the Tournament stats page  was using more Bandwidth then i wanted. So i asked Digioso to limit how many combats could be seen on the front page but if you wanted  to see every combat click here. 
Back to Top
kodabear View Drop Down
Postmaster General
Postmaster General
Avatar
Player Council - Astronomer

Joined: 18 Jun 2013
Location: Lucerna
Status: Offline
Points: 1237
Post Options Post Options   Thanks (0) Thanks(0)   Quote kodabear Quote  Post ReplyReply Direct Link To This Post Posted: 13 Jun 2016 at 16:23
[15:21]<Kodabear> ***Tournament news*** PLEASE DO NOT reset your API key immediately after the Tournament ends as we are going to do one last complete database update to make sure we got all the combats  I will post on the forum when its ok to reset the combat API key 
Back to Top
Yitshak View Drop Down
Wordsmith
Wordsmith
Avatar

Joined: 28 Apr 2016
Status: Offline
Points: 179
Post Options Post Options   Thanks (0) Thanks(0)   Quote Yitshak Quote  Post ReplyReply Direct Link To This Post Posted: 13 Jun 2016 at 12:00
Originally posted by Tensmoor Tensmoor wrote:

I'd like to echo both Rill & Lagavulin. I've learned a great deal during this tourney, not just about the game but also about IT. I've seen the enjoyment those taking part have had so far, the unstinting hard work put in by Kodabear and Digioso and most certainly not least, the raising of the awareness of NF. ClapThumbs UpClap

Ditto 
Back to Top
Tensmoor View Drop Down
Postmaster General
Postmaster General
Avatar

Joined: 07 Apr 2015
Location: Scotland
Status: Offline
Points: 1579
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tensmoor Quote  Post ReplyReply Direct Link To This Post Posted: 13 Jun 2016 at 07:59
I'd like to echo both Rill & Lagavulin. I've learned a great deal during this tourney, not just about the game but also about IT. I've seen the enjoyment those taking part have had so far, the unstinting hard work put in by Kodabear and Digioso and most certainly not least, the raising of the awareness of NF. ClapThumbs UpClap
Back to Top
Lagavulin View Drop Down
Wordsmith
Wordsmith
Avatar

Joined: 31 Dec 2012
Location: United States
Status: Offline
Points: 187
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lagavulin Quote  Post ReplyReply Direct Link To This Post Posted: 12 Jun 2016 at 21:33
I add my thanks to Rills.  With all of her comment +1 by me.

This has been super fun and I have learned, and re learned, things about this game.
Back to Top
Rill View Drop Down
Postmaster General
Postmaster General
Avatar
Player Council - Geographer

Joined: 17 Jun 2011
Location: California
Status: Offline
Points: 6903
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rill Quote  Post ReplyReply Direct Link To This Post Posted: 12 Jun 2016 at 20:39
Thanks for sharing all this info, koda and Digi, not only are you doing a great service by creating this tournament, but also supporting future players in doing the same.  You guys deserve a medal.  Or ... 4 medals.  Or something!
Back to Top
Digioso View Drop Down
Forum Warrior
Forum Warrior
Avatar

Joined: 09 Feb 2015
Location: Germany
Status: Offline
Points: 287
Post Options Post Options   Thanks (1) Thanks(1)   Quote Digioso Quote  Post ReplyReply Direct Link To This Post Posted: 12 Jun 2016 at 16:25
Most of the bugs have been described here in this thread I think.
They mostly had to do with things that I haven't thought about or some logical problems in the code. EG that reports have to be read chronologically and not by going through them player-per-player. Initial thought was: Download a api key for player A, then download his reports, then continue with player B. Now: Download all api keys, put all report IDs into a hash and run through that hash by sorting it chronologically.

Apart from these we had some other technical difficulties:
- The website performance. Building your database using 3rd normal form to avoid data redundancy is nice. Unless you have data in different tables and need to do lots of SQL joins to access it. We have three tables with report data. One for general report data like combat occurance, winner of the battle, coordinates and so on. One for armies with data like army name, owner of the army, alliance of the player. And then a third one for divisions with division names, commander names & health, troops and troop losses. So to get all data we had to do a join over three tables which took A LOT of time. The fix was to add relevant data (combat participants with alliance, troop numbers and losses) to the general report table. Problem solved. :)
- Unforseen issues related to the webhoster (cronjobs that can only run for max. 20min and then are aborted automatically by the webhoster), Suddenly all the Perl scripts didn't work anymore because the Perl installation was missing library files. And then suddently they were working again but the webhoster of course didn't do anything. And the problem right now with accessing the Illyriad-Servers. Koda is running the database updater on his own PC because his server suddently could not do that anymore. Most likely his webhoster is blocking this. Also the webhoster closes database connections after quite a short time when there was no activity (EG because the script was going through reports unrelated to the tournament). So had to make sure that connections are only opened when there is something to do. My own webhoster has a highter timeout here.
- Timezones. Sounds trivial, but isn't. The Illy servers are in a different time zone so you have to make sure that you get your timezones right. In Perl there are several ways to do this. One is very easy and that one is working on Kodas Server, my server and my PC. But not on Kodas PC. Both Koda and me use the same operating system on our PC so that's quite weird... Fix for Kodas PC: He changed his date/time settings to match the Illy servers.
- One thing we didn't know about the combat reports: The defenders report shows that the attacker used occupation as attack method but the defenders' report does not state the occupation time. You can only get this from the report of the attacker. So we had to make sure that the attackers' report is read as well to get that piece of information.
- Aborting downloads of reports/API keys. This was quite a hassle. I use the WWW::Mechanize Perl Modul to download all the stuff. Per default the module does a hard abort (die) and exits the whole script whenever it encounters an error. There are some options to avoid that which we are now using. But still we had to deal with corrupted downloaded files. So right now the script retries downloads whenever they fail. Sounds logical of course but in the initial versions I only thought about the best case. Meaning: No errors while downloading.
- One thing you might want to consider: Ctime or Unix Time is very nice for everything that has to do with times. You can easily sort though it, subtract and add easily and do all sorts of calculations. Know that a day has 86400 seconds! I'm always using Ctime because it makes things very easy. https://en.wikipedia.org/wiki/Unix_time
(Maybe not so) funny fact on this: Some of you might remember the big year 2000 problem which all IT companies thought to be the end of the world - and then almost nothing happened. Unix time is a 32bit variable that will 'full' in 2038. This time it may really be the end of the world. But rejoice, we have ~21,5 years left until we'll all die. Right now there is no solution that fixes it everywhere. :) https://en.wikipedia.org/wiki/Year_2038_problem
Note for me: Fix my website before 2038. :)
Oh, and if we survive 2038 - we'll all die in the year 10000 for sure because then we'll have the Y10k bug. But I don't care because I most likely will not be alive anymore at that time. Unless I find some thing that grants me eternal live.
Note: Need to find more sacrifices for my queen so that She may grand upon me eternal live.


Edited by Digioso - 12 Jun 2016 at 16:35
Back to Top
kodabear View Drop Down
Postmaster General
Postmaster General
Avatar
Player Council - Astronomer

Joined: 18 Jun 2013
Location: Lucerna
Status: Offline
Points: 1237
Post Options Post Options   Thanks (0) Thanks(0)   Quote kodabear Quote  Post ReplyReply Direct Link To This Post Posted: 11 Jun 2016 at 22:53
Number of visits: 6Pages: 28Hits: 80Bandwidth: 655.58 KBNumber of visits: 6Pages: 55Hits: 177Bandwidth: 1.72 MBNumber of visits: 4Pages: 32Hits: 87Bandwidth: 837.89 KBNumber of visits: 1Pages: 2Hits: 2Bandwidth: 12.25 KBNumber of visits: 4Pages: 9Hits: 17Bandwidth: 147.53 KBNumber of visits: 1Pages: 3Hits: 11Bandwidth: 119.95 KBNumber of visits: 10Pages: 37Hits: 98Bandwidth: 867.14 KBNumber of visits: 48Pages: 220Hits: 468Bandwidth: 4.36 MBNumber of visits: 62Pages: 144Hits: 323Bandwidth: 2.80 MBNumber of visits: 16Pages: 31Hits: 95Bandwidth: 947.99 KBNumber of visits: 34Pages: 96Hits: 206Bandwidth: 2.01 MBNumber of visits: 13Pages: 30Hits: 82Bandwidth: 847.10 KBNumber of visits: 10Pages: 29Hits: 58Bandwidth: 532.74 KBNumber of visits: 13Pages: 21Hits: 55Bandwidth: 570.47 KBNumber of visits: 39Pages: 89Hits: 188Bandwidth: 1.70 MBNumber of visits: 180Pages: 592Hits: 1146Bandwidth: 10.72 MBNumber of visits: 635Pages: 2191Hits: 3813Bandwidth: 49.63 MBNumber of visits: 436Pages: 1284Hits: 3373Bandwidth: 53.48 MBNumber of visits: 508Pages: 2106Hits: 4475Bandwidth: 58.42 MBNumber of visits: 595Pages: 2328Hits: 4294Bandwidth: 61.06 MBNumber of visits: 410Pages: 1803Hits: 5664Bandwidth: 35.60 MBNumber of visits: 379Pages: 1419Hits: 3547Bandwidth: 54.37 MBNumber of visits: 576Pages: 2153Hits: 4318Bandwidth: 71.59 MBNumber of visits: 600Pages: 2681Hits: 4874Bandwidth: 1.11 GBNumber of visits: 598Pages: 2483Hits: 4739Bandwidth: 1.36 GBNumber of visits: 581Pages: 2655Hits: 5395Bandwidth: 1.55 GBNumber of visits: 530Pages: 2329Hits: 4709Bandwidth: 1.53 GBNumber of visits: 566Pages: 2433Hits: 4507Bandwidth: 1.58 GBNumber of visits: 504Pages: 2021Hits: 4024Bandwidth: 1.54 GBNumber of visits: 538Pages: 2385Hits: 4827Bandwidth: 1.63 GBNumber of visits: 558Pages: 2155Hits: 4293Bandwidth: 1.67 GB Number of visits: 272.94Pages: 1091.74Hits: 2256.29Bandwidth: 428534201.94
01
May
02
May
03
May
04
May
05
May
06
May
07
May
08
May
09
May
10
May
11
May
12
May
13
May
14
May
15
May
16
May
17
May
18
May
19
May
20
May
21
May
22
May
23
May
24
May
25
May
26
May
27
May
28
May
29
May
30
May
31
May
 Average

DayNumber of visitsPagesHitsBandwidth
01 May 201662880655.58 KB
02 May 20166551771.72 MB
03 May 201643287837.89 KB
04 May 201612212.25 KB
05 May 20164917147.53 KB
06 May 20161311119.95 KB
07 May 2016103798867.14 KB
08 May 2016482204684.36 MB
09 May 2016621443232.80 MB
10 May 2016163195947.99 KB
11 May 201634962062.01 MB
12 May 2016133082847.10 KB
13 May 2016102958532.74 KB
14 May 2016132155570.47 KB
15 May 201639891881.70 MB
16 May 20161805921,14610.72 MB
17 May 20166352,1913,81349.63 MB
18 May 20164361,2843,37353.48 MB
19 May 20165082,1064,47558.42 MB
20 May 20165952,3284,29461.06 MB
21 May 20164101,8035,66435.60 MB
22 May 20163791,4193,54754.37 MB
23 May 20165762,1534,31871.59 MB
24 May 20166002,6814,8741.11 GB
25 May 20165982,4834,7391.36 GB
26 May 20165812,6555,3951.55 GB
27 May 20165302,3294,7091.53 GB
28 May 20165662,4334,5071.58 GB
29 May 20165042,0214,0241.54 GB
30 May 20165382,3854,8271.63 GB
31 May 20165582,1554,2931.67 GB
Average2721,0912,256408.68 MB
Total8,46133,84469,94512.37 GB

Back to Top
kodabear View Drop Down
Postmaster General
Postmaster General
Avatar
Player Council - Astronomer

Joined: 18 Jun 2013
Location: Lucerna
Status: Offline
Points: 1237
Post Options Post Options   Thanks (0) Thanks(0)   Quote kodabear Quote  Post ReplyReply Direct Link To This Post Posted: 11 Jun 2016 at 22:49


Monthly history 
 Unique visitors: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Unique visitors: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Unique visitors: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Unique visitors: 10Number of visits: 42Pages: 226Hits: 507Bandwidth: 8.45 MBUnique visitors: 1782Number of visits: 8461Pages: 33844Hits: 69945Bandwidth: 12.37 GBUnique visitors: 1558Number of visits: 8602Pages: 30673Hits: 60173Bandwidth: 6.14 GBUnique visitors: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Unique visitors: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Unique visitors: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Unique visitors: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Unique visitors: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Unique visitors: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0 
 Jan
2016
Feb
2016
Mar
2016
Apr
2016
May
2016
Jun
2016
Jul
2016
Aug
2016
Sep
2016
Oct
2016
Nov
2016
Dec
2016
 

MonthUnique visitorsNumber of visitsPagesHitsBandwidth
Jan 201600000
Feb 201600000
Mar 201600000
Apr 201610422265078.45 MB
May 20161,7828,46133,84469,94512.37 GB
Jun 20161,5588,60230,67360,1736.14 GB
Jul 201600000
Aug 201600000
Sep 201600000
Oct 201600000
Nov 201600000
Dec 201600000
Total3,35017,10564,743130,62518.52 GB


   
Days of month 
Number of visits: 522Pages: 1929Hits: 3676Bandwidth: 1.88 GBNumber of visits: 463Pages: 1942Hits: 3531Bandwidth: 417.80 MBNumber of visits: 465Pages: 1809Hits: 3509Bandwidth: 207.20 MBNumber of visits: 487Pages: 1644Hits: 3127Bandwidth: 205.66 MBNumber of visits: 517Pages: 1994Hits: 3955Bandwidth: 244.39 MBNumber of visits: 530Pages: 1806Hits: 3462Bandwidth: 226.45 MBNumber of visits: 524Pages: 1847Hits: 3798Bandwidth: 241.14 MBNumber of visits: 505Pages: 1873Hits: 3854Bandwidth: 250.45 MBNumber of visits: 515Pages: 1905Hits: 3845Bandwidth: 259.30 MBNumber of visits: 449Pages: 1609Hits: 3208Bandwidth: 246.89 MBNumber of visits: 447Pages: 1477Hits: 3023Bandwidth: 209.31 MBNumber of visits: 485Pages: 1816Hits: 3740Bandwidth: 273.98 MBNumber of visits: 527Pages: 2103Hits: 4259Bandwidth: 361.31 MBNumber of visits: 480Pages: 1569Hits: 3197Bandwidth: 273.45 MBNumber of visits: 478Pages: 1592Hits: 2860Bandwidth: 246.71 MBNumber of visits: 444Pages: 1515Hits: 2890Bandwidth: 233.96 MBNumber of visits: 473Pages: 1531Hits: 3100Bandwidth: 284.34 MBNumber of visits: 222Pages: 561Hits: 895Bandwidth: 129.23 MBNumber of visits: 69Pages: 151Hits: 244Bandwidth: 46.76 MBNumber of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0 Number of visits: 100.03Pages: 378.61Hits: 763.89Bandwidth: 116263594.60
01
Jun
02
Jun
03
Jun
04
Jun
05
Jun
06
Jun
07
Jun
08
Jun
09
Jun
10
Jun
11
Jun
12
Jun
13
Jun
14
Jun
15
Jun
16
Jun
17
Jun
18
Jun
19
Jun
20
Jun
21
Jun
22
Jun
23
Jun
24
Jun
25
Jun
26
Jun
27
Jun
28
Jun
29
Jun
30
Jun
 Average

DayNumber of visitsPagesHitsBandwidth
01 Jun 20165221,9293,6761.88 GB
02 Jun 20164631,9423,531417.80 MB
03 Jun 20164651,8093,509207.20 MB
04 Jun 20164871,6443,127205.66 MB
05 Jun 20165171,9943,955244.39 MB
06 Jun 20165301,8063,462226.45 MB
07 Jun 20165241,8473,798241.14 MB
08 Jun 20165051,8733,854250.45 MB
09 Jun 20165151,9053,845259.30 MB
10 Jun 20164491,6093,208246.89 MB
11 Jun 20164471,4773,023209.31 MB
12 Jun 20164851,8163,740273.98 MB
13 Jun 20165272,1034,259361.31 MB
14 Jun 20164801,5693,197273.45 MB
15 Jun 20164781,5922,860246.71 MB
16 Jun 20164441,5152,890233.96 MB
17 Jun 20164731,5313,100284.34 MB
18 Jun 2016222561895129.23 MB
19 Jun 20166915124446.76 MB
20 Jun 20160000
21 Jun 20160000
22 Jun 20160000
23 Jun 20160000
24 Jun 20160000
25 Jun 20160000
26 Jun 20160000
27 Jun 20160000
28 Jun 20160000
29 Jun 20160000
30 Jun 20160000
Average100378763110.88 MB
Total8,60230,67360,1736.14 GB



Edited by kodabear - 20 Jun 2016 at 03:51
Back to Top
Tensmoor View Drop Down
Postmaster General
Postmaster General
Avatar

Joined: 07 Apr 2015
Location: Scotland
Status: Offline
Points: 1579
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tensmoor Quote  Post ReplyReply Direct Link To This Post Posted: 11 Jun 2016 at 22:37
I think it would be of great value to others thinking of running a tournament if Kodabear and Digioso can (after a suitable recovery period) give some figures on network usage, problems they ran into etc. May help others see if they have the IT resources to consider it.
Back to Top
 Post Reply Post Reply Page  <1 34567 19>
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.