赛道狂飙中国驿站|Trackmania in china|QQ群9890249

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2362|回复: 3

[已关闭开放]欢迎试用驿站tminn公共联网数据库

 关闭 [复制链接]
发表于 2012-10-15 10:10:52 | 显示全部楼层 |阅读模式
Hi,all

       我们经过一周的不懈努力,已将赛道狂飙中国驿站以前的最火服务器come to NN2[mini]的本地数据(local records)放到了网路数据库上共给大家联网使用,由于现在处于测试阶段,所以我们希望大家对之前的服务器进行备份。
我们也推荐大家使用我们正在为大家推出的usbTMFserver驿站定制版

       为了保护数据安全,我们只提供数据库连接通道,不提供原始数据。望理解。

  MySQL数据库信息                                                                                                                 
数据库服务器208.81.166.180
数据库名tminn
数据库用户名tminn
数据库密码请联系驿站掌柜
数据库空间大小50M
数据库已用大小5M
    服务器信息                                                                                                                              
服务器IP208.81.166.180
操作系统类型windows  
操作系统版本win2003  
Mysql版本MYSQL5.0  


   服务器come to NN2[mini]的本地数据(local records)概览                                                
challenges-409-
players-1,813-
records-10,987-
rs_karma -137-
rs_rank -715-
rs_times -0-
votes -0-

发表于 2012-10-15 11:19:04 | 显示全部楼层
本帖最后由 hyp7617 于 2012-10-15 11:24 编辑

在第一轮测试中,从运行记录查看得到:

1)   plugin.records_eyepiece.php对mostfinished和mostrecords的统计计算和升级花费了很多时间(由于要更新1389 entries updated,总共花费了约8min),如下
  1. [10/15,02:35:46] ***************[plugin.records_eyepiece.php]***************
  2. [10/15,02:35:46] >> Checking Database for required extensions...
  3. [10/15,02:35:46] + Found column `timezone` at table `players_extra`.
  4. [10/15,02:35:46] + Found column `displaywidgets` at table `players_extra`.
  5. [10/15,02:35:47] + Found column `mostfinished` at table `players_extra`.
  6. [10/15,02:35:47] + Found column `mostrecords` at table `players_extra`.
  7. [10/15,02:35:47] + Found column `roundpoints` at table `players_extra`.
  8. [10/15,02:35:47] + Found column `visits` at table `players_extra`.
  9. [10/15,02:35:47] + Found column `winningpayout` at table `players_extra`.
  10. [10/15,02:35:47] + Found index `Nation` at table `players`.
  11. [10/15,02:35:47] + Found index `Wins` at table `players`.
  12. [10/15,02:35:47] + Found index `UpdatedAt` at table `players`.
  13. [10/15,02:35:48] + Found index `Score` at table `rs_karma`.
  14. [10/15,02:35:48] + Found index `Score` at table `rs_times`.
  15. [10/15,02:35:48] >> Updating `mostfinished` counts for all Players...
  16. [10/15,02:35:48] >> Updating `mostrecords` counts for all Players...
  17. [10/15,02:43:21] + 1389 entries updated.
  18. [10/15,02:43:21] >> Finished.
  19. [10/15,02:43:21] ***********************************************************
  20. [10/15,02:43:32] << player 250 joined the game [hyp7617 : hyp7617$f00$w.$z$f00tm-inn : China : 59382 : 192.168.0.101]
  21. ######################################################################
复制代码
2) 阵列计算(Calculating ranks)也会消耗一部分时间,约为30s,如下
  1. End Round
  2. End Challenge
  3. [10/15,02:43:36] [RASP] Calculating ranks...
  4. [10/15,02:44:26] [RASP] ...Done!
  5. [10/15,02:44:28] [Music] Setting next song to: http://tmnn.d3373.jit8.cn/music/I'm Gonna Getcha Good.mux
  6. Begin Challenge
  7. [10/15,02:44:38] [plugin.records_eyepiece.php] Register event "onCheckpoint" to enabled wanted Widgets.
  8. [10/15,02:44:38] track changed [undefined] >> [Mbobo34]
  9. [10/15,02:44:38] current record on Mbobo34 is 0:16.72 and held by 禄蠀纽蟽芦AE86
  10. Begin Round
  11. End Round
  12. End Challenge
  13. [10/15,02:44:42] [RASP] Calculating ranks...
  14. [10/15,02:45:37] [RASP] ...Done!
  15. [10/15,02:45:39] [Music] Setting next song to: http://tmnn.d3373.jit8.cn/music/zhong_guo_ren.mux
  16. Begin Challenge
  17. [10/15,02:45:46] track changed [Mbobo34] >> [Mbobo19]
  18. [10/15,02:45:46] current record on Mbobo19 is 0:15.13 and held by IRmalay
  19. Begin Round
复制代码
在电脑本地数据库测试没有这个问题,所以可以初步判断这是由于网络原因引起的。
第一轮,优化方案如下:
忽略 plugin.records_eyepiece.php对mostfinished和mostrecords的统计计算和升级,同时也可以减轻数据库通信负担。
对于阵列计算的延迟,由于时间较短,且不影响玩家play,暂且不做处理,待观察。
发表于 2012-10-15 13:45:07 | 显示全部楼层
在第二轮测试中法相当
  1. [RASP] Calculating ranks...
  2. [RASP] ...Done!
复制代码
之间执行时间超过1min时,记录系统会给出告警崩溃
Maximum execution time of 60 seconds exceeded in ……
暂且发现主要出在两个插件:
一是:plugin.rasp.php
二是:plugin.records_eyepiece.php

此问题留待观察
 楼主| 发表于 2012-10-16 15:22:41 | 显示全部楼层
鉴于美国数据库,网络延迟较大网速也不太理想,经常易造成了记录指令在规定时间内不能得到有效执行,相对其关闭对外开放联网功能。我们开通了yizhan国内电信数据库,欢迎大家使用公共联网数据库。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|赛道狂飙中国驿站|Trackmania in china|QQ群9890249 ( 蜀ICP备20016772号-1 )
赛道狂飙中国驿站 赛道狂飙中国驿站TM2020 点击这里给我发消息

川公网安备 51012202000677号

GMT+8, 2024-4-27 17:46 , Processed in 0.037436 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表