Load testing yandex储罐api客户端示例不';行不通

Load testing yandex储罐api客户端示例不';行不通,load-testing,yandex,yandex-tank,Load Testing,Yandex,Yandex Tank,我不知道yandex tank api客户端示例是如何工作的。 我在tank-example.py中做了以下更正: 已替换(错误为其他错误) 与 其中f-为函数: def f(status, t): print "Status: %s" % status 我已将示例的load.yaml文件替换为我的文件: - tanks: ['localhost'] config: ./load.ini log_name: task-A download: ['*.log','*.ini'

我不知道yandex tank api客户端示例是如何工作的。 我在tank-example.py中做了以下更正: 已替换(错误为其他错误)

其中f-为函数:

def f(status, t):
    print "Status: %s" % status
我已将示例的load.yaml文件替换为我的文件:

- tanks: ['localhost']
  config: ./load.ini
  log_name: task-A
  download: ['*.log','*.ini']
  upload: ['*.ammo']
  expected_codes: [0]
其中load.ini为:

在本地主机上运行yandex tank api server并启动测试后,但它无法离开配置阶段:

tank.log文件以行结尾(您可以将tank.log加满):


我想了解为什么PID不存在。这个例子有错误吗

我就这个问题发表了一篇文章:我就这个问题发表了一篇文章:
def f(status, t):
    print "Status: %s" % status
- tanks: ['localhost']
  config: ./load.ini
  log_name: task-A
  download: ['*.log','*.ini']
  upload: ['*.ammo']
  expected_codes: [0]
[DEFAULT]
use_caching = 0

[phantom]
phantom_path = /home/krylov/prj/yandex/phantom/bin/phantom
phantom_modules_path = /home/krylov/prj/yandex/phantom/lib/phantom
address=localhost:8000
rps_schedule=const(10, 10s)
; Headers and URIs for GET requests

header_http = 1.1
headers = /
          [Host: 127.0.0.1]
          [Connection: close]
uris = /
       /instances
       /datastore
       /datastore-indexes
    2016-04-19 12:44:10,263 [DEBUG] Tank localhost: API returned code 200, contents:
{
    "status": "running", 
    "retcode": null, 
    "stage_completed": true, 
    "break": "configure", 
    "current_stage": "lock", 
    "tank_status": {}, 
    "failures": []
}
Status: 0
2016-04-19 12:44:00,287 [INFO] yandex_tank_api.worker Changing the next break from lock to configure
2016-04-19 12:44:00,288 [WARNING] yandextank.core.tankcore Lock file present: /var/lock/lunapark_1WgKl6.lock
2016-04-19 12:44:00,288 [DEBUG] root No process[3]: [Errno 3] No such process
2016-04-19 12:44:00,288 [DEBUG] yandextank.core.tankcore Lock PID 13895 not exists, ignoring and trying to remove