Path: blob/1.0-develop/resources/views/admin/servers/view/build.blade.php
7461 views
@extends('layouts.admin')12@section('title')3Server — {{ $server->name }}: Build Details4@endsection56@section('content-header')7<h1>{{ $server->name }}<small>Control allocations and system resources for this server.</small></h1>8<ol class="breadcrumb">9<li><a href="{{ route('admin.index') }}">Admin</a></li>10<li><a href="{{ route('admin.servers') }}">Servers</a></li>11<li><a href="{{ route('admin.servers.view', $server->id) }}">{{ $server->name }}</a></li>12<li class="active">Build Configuration</li>13</ol>14@endsection1516@section('content')17@include('admin.servers.partials.navigation')18<div class="row">19<form action="{{ route('admin.servers.view.build', $server->id) }}" method="POST">20<div class="col-sm-5">21<div class="box">22<div class="box-header with-border">23<h3 class="box-title">Resource Management</h3>24</div>25<div class="box-body">26<div class="form-group">27<label for="cpu" class="control-label">CPU Limit</label>28<div class="input-group">29<input type="text" name="cpu" class="form-control" value="{{ old('cpu', $server->cpu) }}"/>30<span class="input-group-addon">%</span>31</div>32<p class="text-muted small">Each <em>virtual</em> core (thread) on the system is considered to be <code>100%</code>. Setting this value to <code>0</code> will allow a server to use CPU time without restrictions.</p>33</div>34<div class="form-group">35<label for="threads" class="control-label">CPU Pinning</label>36<div>37<input type="text" name="threads" class="form-control" value="{{ old('threads', $server->threads) }}"/>38</div>39<p class="text-muted small"><strong>Advanced:</strong> Enter the specific CPU cores that this process can run on, or leave blank to allow all cores. This can be a single number, or a comma seperated list. Example: <code>0</code>, <code>0-1,3</code>, or <code>0,1,3,4</code>.</p>40</div>41<div class="form-group">42<label for="memory" class="control-label">Allocated Memory</label>43<div class="input-group">44<input type="text" name="memory" data-multiplicator="true" class="form-control" value="{{ old('memory', $server->memory) }}"/>45<span class="input-group-addon">MiB</span>46</div>47<p class="text-muted small">The maximum amount of memory allowed for this container. Setting this to <code>0</code> will allow unlimited memory in a container.</p>48</div>49<div class="form-group">50<label for="swap" class="control-label">Allocated Swap</label>51<div class="input-group">52<input type="text" name="swap" data-multiplicator="true" class="form-control" value="{{ old('swap', $server->swap) }}"/>53<span class="input-group-addon">MiB</span>54</div>55<p class="text-muted small">Setting this to <code>0</code> will disable swap space on this server. Setting to <code>-1</code> will allow unlimited swap.</p>56</div>57<div class="form-group">58<label for="cpu" class="control-label">Disk Space Limit</label>59<div class="input-group">60<input type="text" name="disk" class="form-control" value="{{ old('disk', $server->disk) }}"/>61<span class="input-group-addon">MiB</span>62</div>63<p class="text-muted small">This server will not be allowed to boot if it is using more than this amount of space. If a server goes over this limit while running it will be safely stopped and locked until enough space is available. Set to <code>0</code> to allow unlimited disk usage.</p>64</div>65<div class="form-group">66<label for="io" class="control-label">Block IO Proportion</label>67<div>68<input type="text" name="io" class="form-control" value="{{ old('io', $server->io) }}"/>69</div>70<p class="text-muted small"><strong>Advanced</strong>: The IO performance of this server relative to other <em>running</em> containers on the system. Value should be between <code>10</code> and <code>1000</code>.</code></p>71</div>72<div class="form-group">73<label for="cpu" class="control-label">OOM Killer</label>74<div>75<div class="radio radio-danger radio-inline">76<input type="radio" id="pOomKillerEnabled" value="0" name="oom_disabled" @if(!$server->oom_disabled)checked @endif>77<label for="pOomKillerEnabled">Enabled</label>78</div>79<div class="radio radio-success radio-inline">80<input type="radio" id="pOomKillerDisabled" value="1" name="oom_disabled" @if($server->oom_disabled)checked @endif>81<label for="pOomKillerDisabled">Disabled</label>82</div>83<p class="text-muted small">84Enabling OOM killer may cause server processes to exit unexpectedly.85</p>86</div>87</div>88</div>89</div>90</div>91<div class="col-sm-7">92<div class="row">93<div class="col-xs-12">94<div class="box">95<div class="box-header with-border">96<h3 class="box-title">Application Feature Limits</h3>97</div>98<div class="box-body">99<div class="row">100<div class="form-group col-xs-6">101<label for="database_limit" class="control-label">Database Limit</label>102<div>103<input type="text" name="database_limit" class="form-control" value="{{ old('database_limit', $server->database_limit) }}"/>104</div>105<p class="text-muted small">The total number of databases a user is allowed to create for this server.</p>106</div>107<div class="form-group col-xs-6">108<label for="allocation_limit" class="control-label">Allocation Limit</label>109<div>110<input type="text" name="allocation_limit" class="form-control" value="{{ old('allocation_limit', $server->allocation_limit) }}"/>111</div>112<p class="text-muted small">The total number of allocations a user is allowed to create for this server.</p>113</div>114<div class="form-group col-xs-6">115<label for="backup_limit" class="control-label">Backup Limit</label>116<div>117<input type="text" name="backup_limit" class="form-control" value="{{ old('backup_limit', $server->backup_limit) }}"/>118</div>119<p class="text-muted small">The total number of backups that can be created for this server.</p>120</div>121</div>122</div>123</div>124</div>125<div class="col-xs-12">126<div class="box">127<div class="box-header with-border">128<h3 class="box-title">Allocation Management</h3>129</div>130<div class="box-body">131<div class="form-group">132<label for="pAllocation" class="control-label">Game Port</label>133<select id="pAllocation" name="allocation_id" class="form-control">134@foreach ($assigned as $assignment)135<option value="{{ $assignment->id }}"136@if($assignment->id === $server->allocation_id)137selected="selected"138@endif139>{{ $assignment->alias }}:{{ $assignment->port }}</option>140@endforeach141</select>142<p class="text-muted small">The default connection address that will be used for this game server.</p>143</div>144<div class="form-group">145<label for="pAddAllocations" class="control-label">Assign Additional Ports</label>146<div>147<select name="add_allocations[]" class="form-control" multiple id="pAddAllocations">148@foreach ($unassigned as $assignment)149<option value="{{ $assignment->id }}">{{ $assignment->alias }}:{{ $assignment->port }}</option>150@endforeach151</select>152</div>153<p class="text-muted small">Please note that due to software limitations you cannot assign identical ports on different IPs to the same server.</p>154</div>155<div class="form-group">156<label for="pRemoveAllocations" class="control-label">Remove Additional Ports</label>157<div>158<select name="remove_allocations[]" class="form-control" multiple id="pRemoveAllocations">159@foreach ($assigned as $assignment)160<option value="{{ $assignment->id }}">{{ $assignment->alias }}:{{ $assignment->port }}</option>161@endforeach162</select>163</div>164<p class="text-muted small">Simply select which ports you would like to remove from the list above. If you want to assign a port on a different IP that is already in use you can select it from the left and delete it here.</p>165</div>166</div>167<div class="box-footer">168{!! csrf_field() !!}169<button type="submit" class="btn btn-primary pull-right">Update Build Configuration</button>170</div>171</div>172</div>173</div>174</div>175</form>176</div>177@endsection178179@section('footer-scripts')180@parent181<script>182$('#pAddAllocations').select2();183$('#pRemoveAllocations').select2();184$('#pAllocation').select2();185</script>186@endsection187188189