Skip to content

Instantly share code, notes, and snippets.

View ZhouXing19's full-sized avatar
🤖

Jane Xing ZhouXing19

🤖
  • Cockorach Labs
  • Toronto, ON
  • 06:54 (UTC -05:00)
View GitHub Profile
{
"embeddings": [
{
"tensorName": "w2v multi domain",
"tensorShape": [
1000,
50
],
"tensorPath": "https://github.com/ZhouXing19/WordEmbeddingfromMultiDomain/blob/master/vectors.tsv",
"metadataPath": "https://github.com/ZhouXing19/WordEmbeddingfromMultiDomain/blob/master/metadata.tsv"
@ZhouXing19
ZhouXing19 / gist:227fda8d70b79940427e7a3bb86bf323
Last active March 17, 2021 11:42
Energy_projector_config.json
{
"embeddings": [
{
"tensorName": "Energy Sector",
"tensorShape": [
22406,
100
],
"tensorPath": "https://github.com/ZhouXing19/ContAnalysisFinalProj/blob/master/tsvs/Energy_vectors.tsv",
"metadataPath": "https://github.com/ZhouXing19/ContAnalysisFinalProj/blob/master/tsvs/Energy_metadata.tsv"
diff --git a/pkg/ccl/workloadccl/fixture_test.go b/pkg/ccl/workloadccl/fixture_test.go
index 25e7f0f0c4..3131e63a25 100644
--- a/pkg/ccl/workloadccl/fixture_test.go
+++ b/pkg/ccl/workloadccl/fixture_test.go
@@ -28,6 +28,7 @@ import (
"github.com/cockroachdb/cockroach/pkg/util/leaktest"
"github.com/cockroachdb/cockroach/pkg/util/timeutil"
"github.com/cockroachdb/cockroach/pkg/workload"
+ "github.com/cockroachdb/errors"
"github.com/spf13/pflag"
@ZhouXing19
ZhouXing19 / run_tpcc_experiment.sh
Created February 4, 2022 00:31
To launch multiple machines, with each with different warehouses per vcpu
#!/usr/local/bin/bash
# bash version should be > 5
curdate=$(date '+%Y%m%d')
cloud=
args=
function usage() {
echo "$1
@ZhouXing19
ZhouXing19 / n2-standard-8.sh
Created February 4, 2022 21:48
Results, see the zip file
#!/bin/bash
NAME_EXTRA=${NAME_EXTRA:=ori}
CLOUD="gce"
CLUSTER="$CRL_USERNAME-cldrprt23-n2-standard-8-4140608692-$NAME_EXTRA"
TMUX_SESSION="cloud-report"
WEST_CLUSTER="${CLUSTER}-west"
west_cluster_created=''
diff --git a/scripts/gen/tpcc.sh b/scripts/gen/tpcc.sh
index c99761f..1424b42 100644
--- a/scripts/gen/tpcc.sh
+++ b/scripts/gen/tpcc.sh
@@ -10,6 +10,7 @@ f_active_per_core=125
f_skip_load=''
f_load_args=''
f_duration="30m"
+f_nodes=4
diff --git a/scripts/gen/tpcc.sh b/scripts/gen/tpcc.sh
index c99761f..4da9bf2 100644
--- a/scripts/gen/tpcc.sh
+++ b/scripts/gen/tpcc.sh
@@ -92,17 +92,21 @@ then
echo "done loading"
fi
+num_vcpu_per_node=$(cat /proc/cpuinfo | grep processor | wc -l)
+
diff --git a/scripts/gen/tpcc.sh b/scripts/gen/tpcc.sh
index c99761f..69ca4db 100644
--- a/scripts/gen/tpcc.sh
+++ b/scripts/gen/tpcc.sh
@@ -92,17 +92,22 @@ then
echo "done loading"
fi
+num_vcpu_per_node=$(cat /proc/cpuinfo | grep processor | wc -l)
+
@ZhouXing19
ZhouXing19 / tpcc.sh
Created February 9, 2022 22:35
Enabled cluster settings
#!/bin/bash
set -ex
pidfile="$HOME/tpcc-bench.pid"
f_force=''
f_wait=''
f_active=0
f_warehouses=10000
f_active_per_core=125
f_skip_load=''
This file has been truncated, but you can view the full file.
diff --git a/.bazelrc b/.bazelrc
index dc0596733f..2e0f49554a 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -26,27 +26,18 @@ build:cross --stamp
build:cross --define cockroach_cross=y
# Cross-compilation configurations. Add e.g. --config=crosslinux to turn these on.
-# Generally these should be used for development builds. Each cross config has
-# a corresponding `base` config that is the same thing but without the