links.html 4.87 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
24
25
26
27
28
29
30
                <th>TCP buffer size</th>
            </tr>
        </thead>
        <tbody id="link-config-list">
        </tbody>
        <tbody id="link-config-add">
            <tr>
                <td>
31
                    <button class="btn btn-link" type="submit" id="button_add_link">
32
33
34
35
                        <i class="glyphicon glyphicon-plus"></i>
                    </button>
                </td>
                <td>
36
                    <input class="form-control" type="text" placeholder="Symbolic name" name="symbolicname" pattern="^[^\s]+$" required title="Space is not allowed"/>
37
38
39
                </td>
                <td>
                    <input class="form-control" type="text" placeholder="Source" name="source"
40
                        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 *" />
41
42
43
                </td>
                <td>
                    <input class="form-control" type="text" placeholder="Destination" name="destination"
44
                        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 *" />
45
46
47
                </td>
                <td>
                    <input class="form-control" type="number" placeholder="Streams" name="nostreams"
Vezhova's avatar
Vezhova committed
48
                        min="0" max="16" value="1"/>
49
50
                </td>
                <td>
51
                    <input class="form-control" type="number" placeholder="Min Actives" name="min_active"
52
                        min="2" max="999999" value="2"/>
53
54
                </td>
                <td>
55
                    <input class="form-control" type="number" placeholder="Max Actives" name="max_active"
56
                        min="2" max="999999" value="60" />
57
58
59
                </td>
                <td>
                    <input class="form-control" type="number" placeholder="Optimizer Mode" name="optimizer_mode"
Vezhova's avatar
Vezhova committed
60
                        min="0" max="3" value="0"/>
61
62
63
                </td>
                <td>
                    <input class="form-control" type="number" placeholder="TCP buffer size" name="tcp_buffer_size"
64
                        min="0" max="999999" value="0"/>
65
                </td>
66
     
67
68
69
            </tr>
        </tbody>
    </table>
70
    </form>
71
72
73
74
75
76
77
78
79
80

    <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>

81
    <form id="share-add-frm">
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
    <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>
97
                    <button class="btn btn-link" type="submit" id="button_share_link">
98
99
100
101
102
103
104
105
106
107
108
109
                        <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>
110
                    <input type="text" name="vo" placeholder="VO" class="form-control" id="share-add-field-vo" pattern="^[^\s]+$" required title="Space is not allowed"/>
111
112
                </td>
                <td>
113
                    <input type="number" name="share" placeholder="Share" class="form-control" id="share-add-field-share" min="0"/>
114
115
116
117
                </td>
            </tr>
        </tbody>
    </table>
118
    </form>
119
120
121
122
123
</div>

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

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