【问题标题】:Error using bees with machineguns使用机枪蜜蜂时出错
【发布时间】:2015-10-14 20:47:49
【问题描述】:

我曾尝试使用beeswithmachineguns 对站点进行负载测试,但收效甚微。有一个similar post,但我收到的错误略有不同。

我用下面的来启动蜜蜂。

bees up -s 1 -k Bees-West -g SWARM

我得到的错误与 groupId 为空有关,但我正在使用 -g SWARM 传递该值......或者我是这么认为的。我的设置使用 us-west-2 区域,如链接帖子中所述,我的 .boto 文件中有该区域。

Connecting to the hive.  
Attempting to call up 1 bees.  
Traceback (most recent call last):
  File "/usr/local/bin/bees", line 5, in <module>
    main.main()  
  File "/Library/Python/2.7/site-packages/beeswithmachineguns/main.py", line 127, in main parse_options()  
  File "/Library/Python/2.7/site-packages/beeswithmachineguns/main.py", line 111, in parse_options  
    bees.up(options.servers, options.group, options.zone, options.instance, options.login, options.key)  
  File "/Library/Python/2.7/site-packages/beeswithmachineguns/bees.py", line 104, in up  
    placement=zone)
  File "/Library/Python/2.7/site-packages/boto/ec2/connection.py", line 618, in run_instances  
    return self.get_object('RunInstances', params, Reservation, verb='POST')  
  File "/Library/Python/2.7/site-packages/boto/connection.py", line 699, in get_object  
    raise self.ResponseError(response.status, response.reason, body)
boto.exception.EC2ResponseError: EC2ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>  
<Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value () for parameter groupId is invalid. The value cannot be empty</Message></Error></Errors><RequestID>bd1c6bcb-875f-4294-af64-84853b5b258a</RequestID></Response>  

【问题讨论】:

  • 您需要确保使用正确的子网 (-v) 和安全组 (-g) 组合。
  • 蜜蜂实例是使用我设置的实例还是动态创建的?
  • 我在 us-west-2a 中有一个实例,但尝试运行 bees 时出现的错误是“无效的可用区:[us-west-2a]”
  • 我在bees帮助中没有看到subnet(-v)作为参数列出,只有zone(-z)是你指的参数?
  • up 命令有一个 -v(或 --subnet)选项,用于“应在其中启动实例的 vpc 子网 ID。(默认值:无)。”蜜蜂是动态发射的。不知道为什么您会看到 us-west-2a 出现问题。

标签: amazon-web-services amazon-ec2 load-testing


【解决方案1】:

您能否通过单击左侧的 Ec2->Security groups->检查组名称来确保 AWS 中存在组“SWARM”。

【讨论】:

    猜你喜欢
    • 2015-01-18
    • 2022-11-25
    • 1970-01-01
    • 1970-01-01
    • 2019-11-02
    • 1970-01-01
    • 2021-05-23
    • 2014-06-03
    • 1970-01-01
    相关资源
    最近更新 更多