-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: optimize MysqlServerStateManager and resolve conflicts in metric…
… plugins
- Loading branch information
Showing
10 changed files
with
65 additions
and
151 deletions.
There are no files selected for viewing
44 changes: 0 additions & 44 deletions
44
datavines-engine/datavines-engine-plugins/datavines-engine-flink/delete_dirs.java
This file was deleted.
Oops, something went wrong.
6 changes: 1 addition & 5 deletions
6
...ected-daily-avg/src/main/resources/META-INF/plugins/io.datavines.metric.api.ExpectedValue
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 |
---|---|---|
@@ -1,8 +1,4 @@ | ||
local_daily_avg=io.datavines.metric.expected.plugin.DailyAvg | ||
spark_daily_avg=io.datavines.metric.expected.plugin.SparkDailyAvg | ||
<<<<<<< HEAD | ||
livy_daily_avg=io.datavines.metric.expected.plugin.SparkDailyAvg | ||
flink_daily_avg=io.datavines.metric.expected.plugin.DailyAvg | ||
======= | ||
livy_daily_avg=io.datavines.metric.expected.plugin.SparkDailyAvg | ||
>>>>>>> upstream/dev | ||
flink_daily_avg=io.datavines.metric.expected.plugin.DailyAvg |
6 changes: 1 addition & 5 deletions
6
...ic-expected-fix/src/main/resources/META-INF/plugins/io.datavines.metric.api.ExpectedValue
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 |
---|---|---|
@@ -1,8 +1,4 @@ | ||
local_fix_value=io.datavines.metric.expected.plugin.FixValue | ||
spark_fix_value=io.datavines.metric.expected.plugin.FixValue | ||
<<<<<<< HEAD | ||
livy_fix_value=io.datavines.metric.expected.plugin.FixValue | ||
flink_fix_value=io.datavines.metric.expected.plugin.FixValue | ||
======= | ||
livy_fix_value=io.datavines.metric.expected.plugin.FixValue | ||
>>>>>>> upstream/dev | ||
flink_fix_value=io.datavines.metric.expected.plugin.FixValue |
4 changes: 0 additions & 4 deletions
4
...d-last30day-avg/src/main/resources/META-INF/plugins/io.datavines.metric.api.ExpectedValue
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 |
---|---|---|
@@ -1,8 +1,4 @@ | ||
local_last_30d_avg=io.datavines.metric.expected.plugin.Last30DayAvg | ||
spark_last_30d_avg=io.datavines.metric.expected.plugin.SparkLast30DayAvg | ||
<<<<<<< HEAD | ||
livy_last_30d_avg=io.datavines.metric.expected.plugin.SparkLast30DayAvg | ||
flink_last_30d_avg=io.datavines.metric.expected.plugin.Last30DayAvg | ||
======= | ||
livy_last_30d_avg=io.datavines.metric.expected.plugin.SparkLast30DayAvg | ||
>>>>>>> upstream/dev |
6 changes: 1 addition & 5 deletions
6
...ed-last7day-avg/src/main/resources/META-INF/plugins/io.datavines.metric.api.ExpectedValue
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 |
---|---|---|
@@ -1,8 +1,4 @@ | ||
local_last_7d_avg=io.datavines.metric.expected.plugin.Last7DayAvg | ||
spark_last_7d_avg=io.datavines.metric.expected.plugin.SparkLast7DayAvg | ||
<<<<<<< HEAD | ||
livy_last_7d_avg=io.datavines.metric.expected.plugin.SparkLast7DayAvg | ||
flink_last_7d_avg=io.datavines.metric.expected.plugin.Last7DayAvg | ||
======= | ||
livy_last_7d_avg=io.datavines.metric.expected.plugin.SparkLast7DayAvg | ||
>>>>>>> upstream/dev | ||
flink_last_7d_avg=io.datavines.metric.expected.plugin.Last7DayAvg |
6 changes: 1 addition & 5 deletions
6
...ted-monthly-avg/src/main/resources/META-INF/plugins/io.datavines.metric.api.ExpectedValue
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 |
---|---|---|
@@ -1,8 +1,4 @@ | ||
local_monthly_avg=io.datavines.metric.expected.plugin.MonthlyAvg | ||
spark_monthly_avg=io.datavines.metric.expected.plugin.SparkMonthlyAvg | ||
<<<<<<< HEAD | ||
livy_monthly_avg=io.datavines.metric.expected.plugin.SparkMonthlyAvg | ||
flink_monthly_avg=io.datavines.metric.expected.plugin.MonthlyAvg | ||
======= | ||
livy_monthly_avg=io.datavines.metric.expected.plugin.SparkMonthlyAvg | ||
>>>>>>> upstream/dev | ||
flink_monthly_avg=io.datavines.metric.expected.plugin.MonthlyAvg |
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
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 |
---|---|---|
@@ -1,61 +1,44 @@ | ||
# | ||
# 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. | ||
# | ||
|
||
FROM openjdk:8 | ||
|
||
MAINTAINER 735140144 | ||
|
||
ARG VERSION=1.0.0-SNAPSHOT | ||
ARG FLINK_VERSION=1.13.6 | ||
ARG SCALA_VERSION=2.11 | ||
|
||
ENV TZ=Asia/Shanghai \ | ||
LANG=zh_CN.UTF-8 \ | ||
FLINK_HOME=/opt/flink \ | ||
PATH=$PATH:/opt/flink/bin | ||
ENV TZ=Asia/Shanghai | ||
ENV LANG=zh_CN.UTF-8 | ||
|
||
WORKDIR /opt | ||
|
||
# Install required packages | ||
RUN apt-get update && \ | ||
apt-get install -y tini wget sudo && \ | ||
apt-get install -y tini && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Download and setup Flink for engine support | ||
RUN wget --no-check-certificate https://archive.apache.org/dist/flink/flink-${FLINK_VERSION}/flink-${FLINK_VERSION}-bin-scala_${SCALA_VERSION}.tgz && \ | ||
tar -xzf flink-${FLINK_VERSION}-bin-scala_${SCALA_VERSION}.tgz && \ | ||
mv flink-${FLINK_VERSION} flink && \ | ||
rm flink-${FLINK_VERSION}-bin-scala_${SCALA_VERSION}.tgz && \ | ||
mkdir -p $FLINK_HOME/logs | ||
|
||
# Copy and extract datavines | ||
COPY datavines-dist/target/datavines-${VERSION}-bin.tar.gz . | ||
|
||
RUN tar -zxvf datavines-${VERSION}-bin.tar.gz && \ | ||
mv datavines-${VERSION}-bin datavines && \ | ||
rm -rf datavines-${VERSION}-bin.tar.gz | ||
|
||
# Fix script permissions and line endings | ||
RUN chmod +x datavines/bin/datavines-daemon.sh && \ | ||
sed -i 's/\r//g' datavines/bin/datavines-daemon.sh && \ | ||
# Copy Flink dependencies | ||
cp datavines/lib/datavines-flink-core*.jar $FLINK_HOME/lib/ && \ | ||
# Create necessary directories with proper permissions | ||
mkdir -p /tmp/datavines/exec/job/flink && \ | ||
chmod -R 777 /tmp/datavines | ||
|
||
# Set up minimal Flink configuration | ||
RUN echo "jobmanager.memory.process.size: 1600m" >> $FLINK_HOME/conf/flink-conf.yaml && \ | ||
echo "taskmanager.memory.process.size: 1728m" >> $FLINK_HOME/conf/flink-conf.yaml && \ | ||
echo "taskmanager.numberOfTaskSlots: 4" >> $FLINK_HOME/conf/flink-conf.yaml && \ | ||
echo "parallelism.default: 2" >> $FLINK_HOME/conf/flink-conf.yaml | ||
|
||
# Create datavines user and set permissions | ||
RUN useradd -m -s /bin/bash datavines && \ | ||
echo "datavines ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \ | ||
chown -R datavines:datavines /opt/datavines /opt/flink /tmp/datavines | ||
|
||
USER datavines | ||
|
||
# Expose Datavines port (primary) and Flink ports (auxiliary) | ||
EXPOSE 5600 8081 6123 | ||
|
||
# Use tini as init process | ||
CMD ["/usr/bin/tini", "--", "datavines/bin/datavines-daemon.sh", "start_container", ""] | ||
RUN chmod +x datavines/bin/datavines-daemon.sh && sed -i 's/\r//g' datavines/bin/datavines-daemon.sh | ||
|
||
EXPOSE 5600 | ||
|
||
CMD ["/usr/bin/tini", "--", "datavines/bin/datavines-daemon.sh", "start_container", ""] |