From 94bfd24e7c4f7c452dc9fb7c86f10752dd2a3f9e Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Fri, 11 Dec 2015 22:18:01 -0500 Subject: [PATCH] Add allocation limits for nodes. Percentage based, if null no limit is set (allows unlimited servers) --- ..._12_12_031511_add_node_resource_limits.php | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 database/migrations/2015_12_12_031511_add_node_resource_limits.php diff --git a/database/migrations/2015_12_12_031511_add_node_resource_limits.php b/database/migrations/2015_12_12_031511_add_node_resource_limits.php new file mode 100644 index 000000000..54aa0ad38 --- /dev/null +++ b/database/migrations/2015_12_12_031511_add_node_resource_limits.php @@ -0,0 +1,33 @@ +mediumInteger('memory_overallocate')->after('memory')->unsigned()->nullable(); + $table->mediumInteger('disk_overallocate')->after('disk')->unsigned()->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('nodes', function (Blueprint $table) { + $table->dropColumn('memory_overallocate'); + $table->dropColumn('disk_overallocate'); + }); + } +}