Implement A/B Test for using AWS as an executor for Java

This commit is contained in:
Sebastian Serth
2022-04-15 14:55:37 +02:00
parent 9d9570b26b
commit 4887f4af02
3 changed files with 44 additions and 1 deletions

View File

@ -32,4 +32,16 @@ class UserGroupSeparator
:no_community_solution
end
end
# Different user groups for using AWS lambda functions instead of Nomad based on the user_id
# This test is independent from any other A/B Test
def self.get_aws_group(user_id)
user_group = user_id % 2 # => 0, 1
case user_group
when 0
:no_aws
else # 1
:use_aws
end
end
end