我曾尝试使用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>
答案 0 :(得分:0)
您是否可以通过点击左侧的Ec2-&gt;安全组来确保AWS中存在“SWARM”组 - &gt;检查组名称。