-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polish scripts #641
Merged
Merged
Polish scripts #641
Conversation
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
- Unify error message on missing libDir among all scripts - Unify DIAG_JAVA_OPTS between bat and sh files - Unify details such as quotation among each type of files - Port DIAG_DEBUG and related message from sh to bat files - Change DIAG_JAVA_OPTIONS to DIAG_JAVA_OPTS in bat files - Add /b option to exit in bat files
diff between diagnostics.sh and import-monitoring.sh--- scripts/diagnostics.sh 2023-05-27 03:30:24.935367000 +0900
+++ scripts/import-monitoring.sh 2023-05-27 03:30:22.879920300 +0900
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
scriptDir="$0"
-scriptDir="${scriptDir/\/diagnostics.sh/$''}"
+scriptDir="${scriptDir/\/import-monitoring.sh/$''}"
libDir="$scriptDir"'/lib'
if [ ! -d "$libDir" ]; then
@@ -32,4 +32,4 @@
[[ "${DIAG_JAVA_OPTS}" == "" ]] && export DIAG_JAVA_OPTS="-Xms256m -Xmx2000m"
echo "Using ${DIAG_JAVA_OPTS} ${DIAG_DEBUG_OPTS} for options."
-"$JAVA" $DIAG_JAVA_OPTS ${DIAG_DEBUG_OPTS} -cp "${scriptDir}/config:${scriptDir}/lib/*" co.elastic.support.diagnostics.DiagnosticApp "$@"
+"$JAVA" $DIAG_JAVA_OPTS ${DIAG_DEBUG_OPTS} -cp "${scriptDir}/config:${scriptDir}/lib/*" co.elastic.support.monitoring.MonitoringImportApp "$@" diff between diagnostics.sh and export-monitoring.sh--- scripts/diagnostics.sh 2023-05-27 03:30:24.935367000 +0900
+++ scripts/export-monitoring.sh 2023-05-27 03:30:24.036204500 +0900
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
scriptDir="$0"
-scriptDir="${scriptDir/\/diagnostics.sh/$''}"
+scriptDir="${scriptDir/\/export-monitoring.sh/$''}"
libDir="$scriptDir"'/lib'
if [ ! -d "$libDir" ]; then
@@ -32,4 +32,4 @@
[[ "${DIAG_JAVA_OPTS}" == "" ]] && export DIAG_JAVA_OPTS="-Xms256m -Xmx2000m"
echo "Using ${DIAG_JAVA_OPTS} ${DIAG_DEBUG_OPTS} for options."
-"$JAVA" $DIAG_JAVA_OPTS ${DIAG_DEBUG_OPTS} -cp "${scriptDir}/config:${scriptDir}/lib/*" co.elastic.support.diagnostics.DiagnosticApp "$@"
+"$JAVA" $DIAG_JAVA_OPTS ${DIAG_DEBUG_OPTS} -cp "${scriptDir}/config:${scriptDir}/lib/*" co.elastic.support.monitoring.MonitoringExportApp "$@" diff between diagnostics.sh and scrub.sh--- scripts/diagnostics.sh 2023-05-27 03:30:24.935367000 +0900
+++ scripts/scrub.sh 2023-05-27 03:30:21.295919000 +0900
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
scriptDir="$0"
-scriptDir="${scriptDir/\/diagnostics.sh/$''}"
+scriptDir="${scriptDir/\/scrub.sh/$''}"
libDir="$scriptDir"'/lib'
if [ ! -d "$libDir" ]; then
@@ -29,7 +29,7 @@
[[ "${DIAG_DEBUG}" != "" ]] && export DIAG_DEBUG_OPTS="-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=y"
-[[ "${DIAG_JAVA_OPTS}" == "" ]] && export DIAG_JAVA_OPTS="-Xms256m -Xmx2000m"
+[[ "${DIAG_JAVA_OPTS}" == "" ]] && export DIAG_JAVA_OPTS="-Xms8g -Xmx8g"
echo "Using ${DIAG_JAVA_OPTS} ${DIAG_DEBUG_OPTS} for options."
-"$JAVA" $DIAG_JAVA_OPTS ${DIAG_DEBUG_OPTS} -cp "${scriptDir}/config:${scriptDir}/lib/*" co.elastic.support.diagnostics.DiagnosticApp "$@"
+"$JAVA" $DIAG_JAVA_OPTS ${DIAG_DEBUG_OPTS} -cp "${scriptDir}/config:${scriptDir}/lib/*" co.elastic.support.scrub.ScrubApp "$@" diff between diagnostics.bat and import-monitoring.bat--- scripts/diagnostics.bat 2023-05-27 04:20:26.268379800 +0900
+++ scripts/import-monitoring.bat 2023-05-27 04:20:40.832312200 +0900
@@ -33,6 +33,6 @@
)
echo Using %DIAG_JAVA_OPTS% %DIAG_DEBUG_OPTS% for options.
-"%JAVA_EXEC%" %DIAG_JAVA_OPTS% %DIAG_DEBUG_OPTS% -cp %diagpath%\config;%diagpath%\lib\* co.elastic.support.diagnostics.DiagnosticApp %*
+"%JAVA_EXEC%" %DIAG_JAVA_OPTS% %DIAG_DEBUG_OPTS% -cp %diagpath%\config;%diagpath%\lib\* co.elastic.support.monitoring.MonitoringImportApp %*
endlocal diff between diagnostics.bat and export-monitoring.bat--- scripts/diagnostics.bat 2023-05-27 04:20:26.268379800 +0900
+++ scripts/export-monitoring.bat 2023-05-27 04:20:34.225764900 +0900
@@ -33,6 +33,6 @@
)
echo Using %DIAG_JAVA_OPTS% %DIAG_DEBUG_OPTS% for options.
-"%JAVA_EXEC%" %DIAG_JAVA_OPTS% %DIAG_DEBUG_OPTS% -cp %diagpath%\config;%diagpath%\lib\* co.elastic.support.diagnostics.DiagnosticApp %*
+"%JAVA_EXEC%" %DIAG_JAVA_OPTS% %DIAG_DEBUG_OPTS% -cp %diagpath%\config;%diagpath%\lib\* co.elastic.support.monitoring.MonitoringExportApp %*
endlocal diff between diagnostics.bat and scrub.bat--- scripts/diagnostics.bat 2023-05-27 04:20:26.268379800 +0900
+++ scripts/scrub.bat 2023-05-27 04:20:46.509470900 +0900
@@ -29,10 +29,10 @@
)
if not defined DIAG_JAVA_OPTS (
- set DIAG_JAVA_OPTS=-Xms256m -Xmx2000m
+ set DIAG_JAVA_OPTS=-Xms8g -Xmx8g
)
echo Using %DIAG_JAVA_OPTS% %DIAG_DEBUG_OPTS% for options.
-"%JAVA_EXEC%" %DIAG_JAVA_OPTS% %DIAG_DEBUG_OPTS% -cp %diagpath%\config;%diagpath%\lib\* co.elastic.support.diagnostics.DiagnosticApp %*
+"%JAVA_EXEC%" %DIAG_JAVA_OPTS% %DIAG_DEBUG_OPTS% -cp %diagpath%\config;%diagpath%\lib\* co.elastic.support.scrub.ScrubApp %*
endlocal |
pickypg
approved these changes
Jul 12, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Test: Run bat files in source
Test: Run bat files in dist
Test: Run sh files in source
Test: Run bat files in dist