Statistics
| Branch: | Tag: | Revision:

one / src / sunstone / public / app / tabs / templates-tab / form-panels / create / wizard-tabs / scheduling / html.hbs @ 0e1d5e42

History | View | Annotate | Download (6.33 KB)

1
{{! -------------------------------------------------------------------------- }}
2
{{! Copyright 2002-2017, OpenNebula Project, OpenNebula Systems                }}
3
{{!                                                                            }}
4
{{! Licensed under the Apache License, Version 2.0 (the "License"); you may    }}
5
{{! not use this file except in compliance with the License. You may obtain    }}
6
{{! a copy of the License at                                                   }}
7
{{!                                                                            }}
8
{{! http://www.apache.org/licenses/LICENSE-2.0                                 }}
9
{{!                                                                            }}
10
{{! Unless required by applicable law or agreed to in writing, software        }}
11
{{! distributed under the License is distributed on an "AS IS" BASIS,          }}
12
{{! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   }}
13
{{! See the License for the specific language governing permissions and        }}
14
{{! limitations under the License.                                             }}
15
{{! -------------------------------------------------------------------------- }}
16
<div class="row collapse">
17
  <div class="medium-2 columns">
18
    <ul class="tabs vertical" id="schedulingTabs" data-tabs>
19
      <li class="tabs-title is-active">
20
        <a href="#placementTab">{{tr "Placement"}}</a>
21
      </li>
22
      <li class="tabs-title">
23
        <a href="#policyTab">{{tr "Policy"}}</a>
24
      </li>
25
    </ul>
26
  </div>
27
  <div class="medium-10 columns">
28
    <div class="tabs-content vertical" data-tabs-content="schedulingTabs">
29
      <div class="requirements wizard_internal_tab is-active tabs-panel" id="placementTab">
30
        <fieldset>
31
          <legend>{{tr "Host Requirements"}}</legend>
32
          <div class="row">
33
            <div class="large-12 columns text-center">
34
              <input type="radio" id="hosts_req" name="req_select" value="host_select">
35
              <label for="hosts_req">{{tr "Select Hosts "}}</label>
36
              <input type="radio" id="clusters_req"  name="req_select" value="cluster_select">
37
              <label for="clusters_req">{{tr "Select Clusters "}}</label>
38
            </div>
39
          </div>
40
          <br>
41
          <div id="req_type" class="host_select" hidden>{{{hostsTableSelectHTML}}}</div>
42
          <div id="req_type" class="cluster_select" hidden>{{{clustersTableSelectHTML}}}</div>
43
          <br>
44
          <div class="row">
45
            <div class="large-12 columns">
46
              <label for="SCHED_REQUIREMENTS">
47
                {{tr "Expression"}}
48
                {{{tip (tr "Boolean expression that rules out provisioning hosts from list of machines suitable to run this VM")}}}
49
              </label>
50
              <input type="text" wizard_field="SCHED_REQUIREMENTS" id="SCHED_REQUIREMENTS" name="requirements" />
51
            </div>
52
          </div>
53
        </fieldset>
54
        <fieldset>
55
          <legend>{{tr "Datastore Requirements"}}</legend>
56
          <div id="req_type" class="ds_select">{{{dsTableSelectHTML}}}</div>
57
          <div class="row">
58
            <div class="large-12 columns">
59
              <label for="SCHED_DS_REQUIREMENTS">
60
                {{tr "Expression"}}
61
                {{{tip (tr "Boolean expression that rules out entries from the pool of datastores suitable to run this VM.")}}}
62
              </label>
63
              <input type="text" wizard_field="SCHED_DS_REQUIREMENTS" id="SCHED_DS_REQUIREMENTS" name="requirements" />
64
            </div>
65
          </div>
66
        </fieldset>
67
      </div>
68
      <div id="policyTab" class="wizard_internal_tab tabs-panel">
69
        <fieldset class="host_rank">
70
          <legend>{{tr "Host Rank"}}</legend>
71
          <div class="row">
72
            <div class="large-12 columns text-center">
73
              <input type="radio" id="packingRadio" name="rank_select" value="RUNNING_VMS">
74
              <label for="packingRadio">
75
                {{tr "Packing"}}
76
                {{{tip (tr "Pack the VMs in the Hosts to reduce VM fragmentation")}}}
77
              </label>
78
              <input type="radio"  id="stripingRadio" name="rank_select" value="-RUNNING_VMS">
79
              <label for="stripingRadio">
80
                {{tr "Stripping"}}
81
                {{{tip (tr "Spread the VMs in the Hosts")}}}
82
              </label>
83
              <input type="radio"  id="loadawareRadio" name="rank_select" value="FREE_CPU">
84
              <label for="loadawareRadio">
85
                {{tr "Load-aware"}}
86
                {{{tip (tr "Maximize the resources available to VMs in a Host")}}}
87
              </label>
88
            </div>
89
          </div>
90
          <br>
91
          <div class="row">
92
            <div class="large-12 columns">
93
              <label for="SCHED_RANK">
94
                {{tr "Expression"}}
95
                {{{tip (tr "This field sets which attribute will be used to sort the suitable hosts for this VM")}}}
96
              </label>
97
              <input type="text" wizard_field="SCHED_RANK" id="SCHED_RANK" name="RANK" />
98
            </div>
99
          </div>
100
        </fieldset>
101
        <fieldset class="ds_rank hypervisor only_kvm">
102
          <legend>{{tr "Datastore Rank"}}</legend>
103
          <div class="row">
104
            <div class="large-12 columns text-center">
105
              <input type="radio" id="packingDSRadio" name="ds_rank_select" value="-FREE_MB">
106
              <label for="packingDSRadio">
107
                {{tr "Packing"}}
108
                {{{tip (tr "Tries to optimize storage usage by selecting the DS with less free space")}}}
109
              </label>
110
              <input type="radio"  id="stripingDSRadio" name="ds_rank_select" value="FREE_MB">
111
              <label for="stripingDSRadio">
112
                {{tr "Stripping"}}
113
                {{{tip (tr "Striping. Tries to optimize I/O by distributing the VMs across datastores.")}}}
114
              </label>
115
            </div>
116
          </div>
117
          <br>
118
          <div class="row">
119
            <div class="large-12 columns">
120
              <label for="SCHED_DS_RANK">
121
                {{tr "Expression"}}
122
                {{{tip (tr "This field sets which attribute will be used to sort the suitable datastores for this VM")}}}
123
              </label>
124
              <input type="text" wizard_field="SCHED_DS_RANK" id="SCHED_DS_RANK" name="RANK" />
125
            </div>
126
          </div>
127
        </fieldset>
128
      </div>
129
    </div>
130
  </div>
131
</div>