Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/mvp_demo' into add-perfPrfofil…
Browse files Browse the repository at this point in the history
…e-table
  • Loading branch information
khansaad committed Aug 10, 2023
2 parents 9c15527 + 2e4d5dd commit ce6a877
Show file tree
Hide file tree
Showing 47 changed files with 5,694 additions and 1,610 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/rm-release-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Kruize Remote monitoring release tests

on:
workflow_dispatch:
inputs:
image:
description: 'Kruize docker image'
required: true

jobs:
releasetest:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Setup Minikube
uses: manusa/[email protected]
with:
minikube version: 'v1.16.0'
kubernetes version: 'v1.19.2'
- uses: actions/checkout@v3
with:
repository: kruize/autotune
path: autotune
ref: mvp_demo

- name: Run Kruize remote monitoring functional tests on minikube
run: |
ps -ef | grep python
echo Running Kruize remote monitoring functional testsuite on minikube
cd tests
./test_autotune.sh -c minikube -i ${{ github.event.inputs.image }} --testsuite=remote_monitoring_tests --resultsdir=${GITHUB_WORKSPACE}
- name: Run Kruize remote monitoring fault tolerant tests on minikube
if: always()
run: |
ps -ef | grep python
echo Running Kruize remote monitoring fault tolerant testsuite on minikube
cd tests/scripts/remote_monitoring_tests/fault_tolerant_tests
./remote_monitoring_fault_tolerant_tests.sh -c minikube -i ${{ github.event.inputs.image }} -r ${GITHUB_WORKSPACE}
- name: Archive results
if: always()
run: |
cd ${GITHUB_WORKSPACE}
ls
tar cvf kruize_test_results.tar kruize_test_results
ls
- name: Upload results
if: always()
uses: actions/upload-artifact@v3
with:
name: kruize_test_results
path: ./kruize_test_results.tar
retention-days: 2
2 changes: 1 addition & 1 deletion Dockerfile.autotune
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RUN microdnf --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install -y jav
&& microdnf clean all

RUN mkdir -p /usr/share/maven /usr/share/maven/ref \
&& curl -fsSL -o /tmp/apache-maven.tar.gz https://apache.osuosl.org/maven/maven-3/3.9.1/binaries/apache-maven-3.9.1-bin.tar.gz \
&& curl -fsSL -o /tmp/apache-maven.tar.gz https://apache.osuosl.org/maven/maven-3/3.9.4/binaries/apache-maven-3.9.4-bin.tar.gz \
&& tar -xzf /tmp/apache-maven.tar.gz -C /usr/share/maven --strip-components=1 \
&& rm -f /tmp/apache-maven.tar.gz \
&& ln -s /usr/share/maven/bin/mvn /usr/bin/mvn
Expand Down
1,650 changes: 1,650 additions & 0 deletions design/APISamples.md

Large diffs are not rendered by default.

21 changes: 16 additions & 5 deletions design/KruizeDatabaseDesign.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,13 +361,11 @@ GROUP BY id;

---


The entity called Kruize_results is used to store the metric results of a previously created experiment, and this data
is either sent through an external system or retrieved from a data source such as Prometheus or Thanos in order to
generate recommendations. The columns in this entity include the version, experiment name, start and end timestamps for
monitoring, duration in minutes, extended data, and metadata.


<table>
<tr>
<td><strong>Attribute</strong>
Expand All @@ -382,7 +380,7 @@ monitoring, duration in minutes, extended data, and metadata.
</td>
<td>string
</td>
<td>The version of the create experiment json template.
<td>The version of the update result json template.
</td>
</tr>
<tr>
Expand Down Expand Up @@ -443,6 +441,12 @@ monitoring, duration in minutes, extended data, and metadata.
</tr>
</table>

Following index added

```
CREATE INDEX idx_result_experiment_name ON public.kruize_results USING btree (experiment_name)
```

### Experiment_results API

The following REST API's are available for the Kruize_results entity:
Expand Down Expand Up @@ -617,7 +621,6 @@ Where r.experiment_name = e.experiment_name
The purpose of this entity is to store the recommendations generated for each experiment, with the Kubernetes objects
tree stored in the extended_data column, where the recommendations are stored on a per-container basis


<table>
<tr>
<td><strong>Attribute</strong>
Expand All @@ -632,7 +635,7 @@ tree stored in the extended_data column, where the recommendations are stored on
</td>
<td>string
</td>
<td>The version of the create experiment json template.
<td>The version of the recommendations json template.
</td>
</tr>
<tr>
Expand Down Expand Up @@ -669,6 +672,14 @@ tree stored in the extended_data column, where the recommendations are stored on
</tr>
</table>

Following index added

```
CREATE INDEX idx_recommendation_cluster_name ON public.kruize_recommendations USING btree (cluster_name)
CREATE INDEX idx_recommendation_experiment_name ON public.kruize_recommendations USING btree (experiment_name)
CREATE INDEX idx_recommendation_interval_end_time ON public.kruize_recommendations USING btree (interval_end_time)
```

### Recommendation API

#### 1. listRecommendations
Expand Down
Loading

0 comments on commit ce6a877

Please sign in to comment.