Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FLINK-3131] [runtime-web] Add checkpoint statistics to web frontend
This closes #1453
- Loading branch information
1 parent
002e0ab
commit 73e8586
Showing
13 changed files
with
660 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
flink-runtime-web/web-dashboard/app/partials/jobs/job.plan.node-list.checkpoints.jade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
div(ng-if="!operatorCheckpointStats") | ||
p | ||
em No checkpoints | ||
|
||
div(ng-if="operatorCheckpointStats") | ||
h2 Overview | ||
|
||
div(ng-include=" 'partials/jobs/job.plan.node.checkpoints.job.html' ") | ||
|
||
h2 Operators | ||
|
||
table.table.table-body-hover.table-clickable.table-activable | ||
thead | ||
tr | ||
th Name | ||
th Status | ||
|
||
tbody(ng-repeat="v in job.vertices" ng-class="{ active: v.id == nodeid }" ng-click="v.id == nodeid || changeNode(v.id)") | ||
tr(ng-if="v.type == 'regular'") | ||
td {{ v.name | humanizeText }} | ||
td | ||
bs-label(status="{{v.status}}") {{v.status}} | ||
|
||
tr(ng-if="nodeid && v.id == nodeid") | ||
td(colspan="10") | ||
div(ng-include=" 'partials/jobs/job.plan.node.checkpoints.operator.html' ") |
96 changes: 96 additions & 0 deletions
96
flink-runtime-web/web-dashboard/app/partials/jobs/job.plan.node.checkpoints.job.jade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
// | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
div(ng-if="!jobCheckpointStats") | ||
p | ||
em No checkpoints | ||
|
||
table(ng-if="jobCheckpointStats").table.table-hover.table-inner | ||
thead | ||
tr | ||
td(colspan=3) | ||
strong Overview | ||
tbody | ||
tr | ||
td | ||
strong Count | ||
td(colspan=3) | ||
span {{ jobCheckpointStats['count'] }} | ||
|
||
tr | ||
td | ||
strong Duration | ||
td | ||
p | ||
strong Minimum: | ||
span {{ jobCheckpointStats['duration']['min'] | humanizeDuration }} | ||
td | ||
p | ||
strong Maximum: | ||
span {{ jobCheckpointStats['duration']['max'] | humanizeDuration }} | ||
|
||
td | ||
p | ||
strong Average: | ||
span {{ jobCheckpointStats['duration']['avg'] | humanizeDuration }} | ||
|
||
tr | ||
td | ||
strong State Size | ||
td | ||
p | ||
strong Minimum: | ||
span {{ jobCheckpointStats['size']['min'] | humanizeBytes }} | ||
td | ||
p | ||
strong Maximum: | ||
span {{ jobCheckpointStats['size']['max'] | humanizeBytes }} | ||
td | ||
p | ||
strong Average: | ||
span {{ jobCheckpointStats['size']['avg'] | humanizeBytes }} | ||
|
||
div(ng-if="!showHistory && jobCheckpointStats && jobCheckpointStats['history'].length > 0") | ||
a.btn.btn-default(ng-click="toggleHistory()") | ||
| <strong>Show history</strong> ({{ jobCheckpointStats['history'].length }}) | ||
= ' ' | ||
i.fa.fa-chevron-down | ||
|
||
div(ng-if="showHistory && jobCheckpointStats && jobCheckpointStats['history'].length > 0") | ||
a.btn.btn-default(ng-click="toggleHistory()") | ||
| Hide history ({{ jobCheckpointStats['history'].length }}) | ||
= ' ' | ||
i.fa.fa-chevron-up | ||
|
||
table.table.table-hover.table-inner | ||
thead | ||
tr | ||
td | ||
strong ID | ||
td | ||
strong Trigger Time | ||
td | ||
strong Duration | ||
td | ||
strong State Size | ||
|
||
tbody(ng-if="jobCheckpointStats['history'] && jobCheckpointStats['history'].length > 0" ng-repeat="historic in jobCheckpointStats['history']") | ||
tr | ||
td {{ historic['id'] }} | ||
td {{ historic['timestamp'] | amDateFormat:'H:mm:ss' }} | ||
td {{ historic['duration'] | humanizeDuration }} | ||
td {{ historic['size'] | humanizeBytes }} |
64 changes: 64 additions & 0 deletions
64
flink-runtime-web/web-dashboard/app/partials/jobs/job.plan.node.checkpoints.operator.jade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
div(ng-if="!operatorCheckpointStats") | ||
p | ||
em No checkpoints | ||
|
||
div(ng-if="operatorCheckpointStats") | ||
table.table.table-hover.table-clickable.table-activable.table-inner | ||
thead | ||
tr | ||
th ID | ||
th Trigger Timestamp | ||
th Duration | ||
th State Size | ||
|
||
tbody | ||
tr | ||
td(width="22%") {{ operatorCheckpointStats['id'] }} | ||
td(width="22%") {{ operatorCheckpointStats['timestamp'] | amDateFormat:'H:mm:ss' }} | ||
td(width="22%") {{ operatorCheckpointStats['duration'] | humanizeDuration }} | ||
td(width="22%") {{ operatorCheckpointStats['size'] | humanizeBytes }} | ||
|
||
div(ng-if="!nodeUnfolded && subtasksCheckpointStats && subtasksCheckpointStats.length > 0") | ||
a.btn.btn-default(ng-click="toggleFold()") | ||
| Show subtasks | ||
= ' ' | ||
i.fa.fa-chevron-down | ||
|
||
a.btn.btn-default.pull-right(ng-click="deactivateNode(); $event.stopPropagation()" title="Fold") | ||
i.fa.fa-chevron-up | ||
|
||
div(ng-if="nodeUnfolded && subtasksCheckpointStats && subtasksCheckpointStats.length > 0") | ||
a.btn.btn-default(ng-click="toggleFold()") | ||
| Hide subtasks | ||
= ' ' | ||
i.fa.fa-chevron-up | ||
|
||
table.table.table-hover.table-clickable.table-activable.table-inner | ||
thead | ||
tr | ||
th Subtask | ||
th Duration | ||
th Type | ||
|
||
tbody(ng-repeat="subtask in subtasksCheckpointStats") | ||
tr | ||
td {{ subtask['subtask'] + 1 }} | ||
td {{ subtask['duration'] | humanizeDuration }} | ||
td {{ subtask['size'] | humanizeBytes }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.