Add allocation limits for nodes.
Percentage based, if null no limit is set (allows unlimited servers)
This commit is contained in:
parent
2abcb028fc
commit
94bfd24e7c
1 changed files with 33 additions and 0 deletions
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddNodeResourceLimits extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('nodes', function (Blueprint $table) {
|
||||
$table->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');
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue