-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
1,715 additions
and
21 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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,57 @@ | ||
# Diag Tool | ||
main: diagnose.py | ||
|
||
ssh/scp by connections.py | ||
|
||
read distribution yaml by dist_conf.py | ||
|
||
## Collector | ||
collector.py collects config, log and version | ||
|
||
TODO: `<cluster-name>-conf` is better than custom dest name? | ||
|
||
### config | ||
``` | ||
<dest>/ | ||
<ip:port>-nameserver/ | ||
nameserver.flags | ||
<ip:port>-tablet/ | ||
tablet.flags | ||
<ip:port>-tablet/ | ||
tablet.flags | ||
<ip:port>-taskmanager/ | ||
taskmanager.properties | ||
``` | ||
|
||
### log | ||
Find log path in remote config file. | ||
|
||
Get last 2 files. | ||
|
||
``` | ||
<dest>/ | ||
<ip:port>-nameserver/ | ||
nameserver.info.log.1 | ||
nameserver.info.log.2 | ||
... | ||
<ip:port>-tablet/ | ||
... | ||
<ip:port>-taskmanager/ | ||
taskmanager.log.1 | ||
job_1_error.log | ||
... | ||
``` | ||
|
||
### version | ||
|
||
exec openmldb | ||
|
||
run jar taskmanager and batch | ||
|
||
#### find batch jar | ||
find spark home from remote taskmanager config file. | ||
|
||
## analysis | ||
|
||
log_analysis.py read logs from local path `<dest>`. | ||
NOTE: if diag local cluster/standalone, directory structure is different. |
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,13 @@ | ||
# Copyright 2021 4Paradigm | ||
# | ||
# Licensed 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. |
Oops, something went wrong.