File tree Expand file tree Collapse file tree 4 files changed +33
-4
lines changed Expand file tree Collapse file tree 4 files changed +33
-4
lines changed Original file line number Diff line number Diff line change 1
1
BDIR=` dirname $0 `
2
-
2
+ . $BDIR /servers.sh
3
3
4
4
if [[ $1 == ' ALL' ]]
5
5
then
6
- . $BDIR /servers.sh
7
6
MACHINES=$SERVERS
8
7
elif [[ $1 == ' PROD' ]]
9
8
then
10
- . $BDIR /servers.sh
11
9
MACHINES=" $BLUES_PD $GREENS_PD "
12
10
elif [[ $1 == ' STAG' ]]
13
11
then
14
- . $BDIR /servers.sh
15
12
MACHINES=" $BLUES_ST $GREENS_ST "
16
13
else
17
14
MPD=` $BDIR /getBlueGreenOpposites.sh`
Original file line number Diff line number Diff line change
1
+ # #
2
+ # # will copy the gl/data (mbtiles junk) over to servers
3
+ # #
4
+ BDIR=` dirname $0 `
5
+ . $BDIR /bolt-base.sh
6
+
7
+ echo " clear the cache..."
8
+ for m in $CACHE_SERVERS
9
+ do
10
+ cmd=" bolt command run \" ./scripts/purge_disk_cache\" --targets $CACHE_USER @$m "
11
+ echo $cmd
12
+ eval $cmd
13
+ done
Original file line number Diff line number Diff line change
1
+ # #
2
+ # # will copy the gl/data (mbtiles junk) over to servers
3
+ # #
4
+ BDIR=` dirname $0 `
5
+ . $BDIR /bolt-base.sh
6
+
7
+ echo " these are the target servers:"
8
+ for m in $MACHINES
9
+ do
10
+ echo " $m "
11
+ done
12
+
13
+ echo
14
+ echo " and these are the http/apache/cache servers: $CACHE_SERVERS "
15
+ echo
Original file line number Diff line number Diff line change @@ -10,3 +10,7 @@ BLUES="$BLUES_ST $BLUES_PD"
10
10
GREENS=" $GREENS_ST $GREENS_PD "
11
11
12
12
SERVERS=" $BLUES $GREENS "
13
+
14
+ CACHE_USER=" web_tiles-trimet-org"
15
+ CACHE_SERVERS=" rj-st-mapweb01 rj-pd-mapweb01 cs-pd-mapweb01"
16
+ CACHE_SERVERS=" rj-st-mapweb01"
You can’t perform that action at this time.
0 commit comments