implemented pooling for Docker containers
This commit is contained in:
@ -0,0 +1,11 @@
|
||||
class AddPoolSizeToExecutionEnvironments < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :execution_environments, :pool_size, :integer
|
||||
|
||||
reversible do |direction|
|
||||
direction.up do
|
||||
ExecutionEnvironment.update_all(pool_size: 0)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
@ -11,7 +11,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20150128093003) do
|
||||
ActiveRecord::Schema.define(version: 20150204080832) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
@ -44,6 +44,7 @@ ActiveRecord::Schema.define(version: 20150128093003) do
|
||||
t.integer "permitted_execution_time"
|
||||
t.integer "user_id"
|
||||
t.string "user_type"
|
||||
t.integer "pool_size"
|
||||
end
|
||||
|
||||
create_table "exercises", force: true do |t|
|
||||
|
Reference in New Issue
Block a user