links.html 5.18 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
<%include file="header.html" args="page='/config/links', subtitle='Link configuration'"/>

<div class="container">
    <h2>Link configuration</h2>

    <p>
        Parameters per link. If only source or only destination is specified, it applies to any
        transfer from/to that storage.
    </p>

11
    <form id="link-config-add-frm">
12
13
14
15
16
17
18
    <table class="table">
        <thead>
            <tr>
                <th></th>
                <th>Symbolic name</th>
                <th>Source</th>
                <th>Destination</th>
19
20
21
22
                <th>Streams</th>
                <th>Min Actives</th>
                <th>Max Actives</th>
                <th>Optimizer Mode</th>
23
                <th>TCP buffer size</th>
24
                <th>Disable delegation</th>
25
26
27
28
29
30
31
            </tr>
        </thead>
        <tbody id="link-config-list">
        </tbody>
        <tbody id="link-config-add">
            <tr>
                <td>
32
                    <button class="btn btn-link" type="submit" id="button_add_link">
33
34
35
36
                        <i class="glyphicon glyphicon-plus"></i>
                    </button>
                </td>
                <td>
37
                    <input class="form-control" type="text" placeholder="Symbolic name" name="symbolicname" pattern="^[^\s]+$" required title="Space is not allowed"/>
38
39
40
                </td>
                <td>
                    <input class="form-control" type="text" placeholder="Source" name="source"
41
                        id="link-add-field-source" pattern="(\*|.*://?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)[^\/])" required title="i.e. http://mysite.ch or *" />
42
43
44
                </td>
                <td>
                    <input class="form-control" type="text" placeholder="Destination" name="destination"
45
                        id="link-add-field-destination" pattern="(\*|.*://?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)[^\/])" required title="i.e. http://mysite.ch or *" />
46
47
48
                </td>
                <td>
                    <input class="form-control" type="number" placeholder="Streams" name="nostreams"
Vezhova's avatar
Vezhova committed
49
                        min="0" max="16" value="1"/>
50
51
                </td>
                <td>
52
                    <input class="form-control" type="number" placeholder="Min Actives" name="min_active"
53
                        min="2" max="999999" value="2"/>
54
55
                </td>
                <td>
56
                    <input class="form-control" type="number" placeholder="Max Actives" name="max_active"
57
                        min="2" max="999999" value="60" />
58
59
60
                </td>
                <td>
                    <input class="form-control" type="number" placeholder="Optimizer Mode" name="optimizer_mode"
Vezhova's avatar
Vezhova committed
61
                        min="0" max="3" value="0"/>
62
63
64
                </td>
                <td>
                    <input class="form-control" type="number" placeholder="TCP buffer size" name="tcp_buffer_size"
65
                        min="0" max="999999" value="0"/>
66
                </td>
67
68
69
70
71
72
                <td>
                    <select class="form-control" name="no_delegation">
                        <option value="true">Yes</option>
                        <option value="false" selected>No</option>
                    </select>
                </td>
73
74
75
            </tr>
        </tbody>
    </table>
76
    </form>
77
78
79
80
81
82
83
84
85
86

    <h2>Share configuration</h2>
    <p>
        Based on these values FTS3 will split the load between the different VOS configured per link.
        Note that the values are normalized to a percentage.
    </p>
    <p>
        When configuring shares, do not forget the <kbd>public</kbd> "VO", so any other VO can have access too.
    </p>

87
    <form id="share-add-frm">
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
    <table class="table">
        <thead>
            <tr>
                <th style="width: 5em"></th>
                <th>Source</th>
                <th>Destination</th>
                <th>VO</th>
                <th>Share</th>
            </tr>
        </thead>
        <tbody id="share-list">
        </tbody>
        <tbody id="share-add">
            <tr>
                <td>
103
                    <button class="btn btn-link" type="submit" id="button_share_link">
104
105
106
107
108
109
110
111
112
113
114
115
                        <i class="glyphicon glyphicon-plus"></i>
                    </button>
                </td>
                <td>
                    <input type="text" name="source" placeholder="Source" class="form-control"
                        id="share-add-field-source"/>
                </td>
                <td>
                    <input type="text" name="destination" placeholder="Destination" class="form-control"
                        id="share-add-field-destination"/>
                </td>
                <td>
116
                    <input type="text" name="vo" placeholder="VO" class="form-control" id="share-add-field-vo" pattern="^[^\s]+$" required title="Space is not allowed"/>
117
118
                </td>
                <td>
119
                    <input type="number" name="share" placeholder="Share" class="form-control" id="share-add-field-share" min="0"/>
120
121
122
123
                </td>
            </tr>
        </tbody>
    </table>
124
    </form>
125
126
127
128
129
</div>

<script src="/js/config/links.js" onload="setupLinks()"></script>

<%include file="footer.html"/>