Skip to content

Commit

Permalink
Some corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
RuchikaSharma-8 committed Jul 6, 2023
1 parent 6c83c06 commit 6be0897
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion perfmetrics/scripts/bigquery/experiments_gcsfuse_bq.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def get_experiment_configuration_id(self, gcsfuse_flags, branch, end_date, confi
else:
row = list(job)[0]
# If the configuration name exists, but GCSFuse flags and branch don't match then raise an exception
if row.get('gcsfuse_flags') is not gcsfuse_flags or row.get('branch') is not branch:
if (row.get('gcsfuse_flags') != gcsfuse_flags) or (row.get('branch') != branch):
raise Exception("Configuration name already exists. GCSFuse flags and branch don't match")
config_id = row.get('configuration_id')
# If the configuration name exists and GCSFuse flags and branch match, but end date does not match, then update end date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export PYTHONPATH="./"
echo Installing requirements..
pip install --require-hashes -r bigquery/requirements.txt --user

CONFIG_ID=$(eval "python3 bigquery/get_experiments_config.py --gcsfuse_flags '$GCSFUSE_FLAGS' --branch '$BRANCH' --end_date '$END_DATE' --config_name '$CONFIG_NAME'")
CONFIG_ID=$(eval "python3 -m bigquery.get_experiments_config --gcsfuse_flags '$GCSFUSE_FLAGS' --branch '$BRANCH' --end_date '$END_DATE' --config_name '$CONFIG_NAME'")
START_TIME_BUILD=$(date +%s)

UPLOAD_FLAGS=""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@
"config_name": "EnabledStorageClientLibrary",
"gcsfuse_flags": "--implicit-dirs --enable-storage-client-library --debug_fuse --debug_gcs",
"branch": "master",
"end_date": "2023-12-30 05:30:00"
"end_date": "2023-12-30 05:30:00+00:00"
},
{
"config_name": "DisabledStorageClientLibrary",
"gcsfuse_flags": "--implicit-dirs --enable-storage-client-library=false --debug_fuse --debug_gcs",
"branch": "master",
"end_date": "2023-12-30 05:30:00"
"end_date": "2023-12-30 05:30:00+00:00"
},
{
"config_name": "EnabledStorageClientLibraryProtocolHTTP2",
"gcsfuse_flags": "--implicit-dirs --enable-storage-client-library --client-protocol http2 --debug_fuse --debug_gcs",
"branch": "experiments_dashboard",
"end_date": "2023-12-30 05:30:00"
"end_date": "2023-12-30 05:30:00+00:00"
},
{
"config_name": "MaxConnsPerHost40",
"gcsfuse_flags": "--implicit-dirs --max-conns-per-host 40 --debug_fuse --debug_gcs",
"branch": "experiments_dashboard",
"end_date": "2023-12-30 05:30:00"
"end_date": "2023-12-30 05:30:00+00:00"
}
]
}
2 changes: 1 addition & 1 deletion perfmetrics/scripts/gsheet/gsheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from googleapiclient.discovery import build

SCOPES = ['https://www.googleapis.com/auth/spreadsheets']
# TODO (ruchiksharmaa): This code uses a test gsheet, with modified fields.
# TODO (ruchikasharmaa): This code uses a test gsheet, with modified fields.
# Before merging to master, we need to change the columns of original sheet.
SPREADSHEET_ID = '1T5ZSUAAYqANS_MUjS2KR2XGN4DhgMFS8zF2I4E8WN4o'

Expand Down
4 changes: 3 additions & 1 deletion perfmetrics/scripts/vm_metrics/vm_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
from gsheet import gsheet
from typing import List

PROJECT_NAME = 'projects/gcs-fuse-test-ml'
# TODO (ruchikasharmaa): Changed project name to gcs-fuse-test for running periodic experiments.
# Before merging to master, we need to resolve the conflicts.
PROJECT_NAME = 'projects/gcs-fuse-test'
CPU_UTI_METRIC_TYPE = 'compute.googleapis.com/instance/cpu/utilization'
RECEIVED_BYTES_COUNT_METRIC_TYPE = 'compute.googleapis.com/instance/network/received_bytes_count'
OPS_LATENCY_METRIC_TYPE = 'custom.googleapis.com/gcsfuse/fs/ops_latency'
Expand Down

0 comments on commit 6be0897

Please sign in to comment.