Skip to content

Commit c4ad75b

Browse files
authored
Create Spcloud Upgrade
1 parent ac84ae7 commit c4ad75b

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Spcloud Upgrade
2+
3+
## Upgrade steps
4+
5+
SSH into the server.
6+
7+
Check for user activity, try to wait for at least 15 minutes of no user activity
8+
```bash
9+
docker logs specifycloud-nginx-1 --tail 1000 | grep -v updown | grep -v notification | grep specifycloud.org | awk '{ split($4,time,"["); print time[2], "-", $6, $7, $8, $9, $10, $11; }'
10+
```
11+
12+
Check which instances are running and the state of the resources for the server
13+
```
14+
docker ps;
15+
glances;
16+
```
17+
18+
Pull the new docker image
19+
```bash
20+
docker pull specifyconsortium/specify7-service:v7.10.2;
21+
```
22+
23+
Edit the `spcloudservers.jsoh` file. For the clients that need upgrading, edit their version to the new version
24+
25+
Run the make command
26+
```bash
27+
make;
28+
```
29+
30+
Verify that the `docker-compose.yml` and `nginx.conf` files look good, no obvious errors and the environment settings look correct.
31+
32+
Test the new nginx config
33+
```bash
34+
docker exec -it specifycloud-nginx-1 nginx -t
35+
```
36+
37+
When upgrading the majority of instances, run this
38+
```
39+
docker compose down; docker compose up -d;
40+
```
41+
42+
When only upgrading one, or a few instances, run this
43+
```bash
44+
docker compose up -d sp7demofish sp7demofish-worker;
45+
```
46+
47+
Check the status of the instances as the are rebuilding and starting up. Need to monitor closely when doing large migration changes
48+
```bash
49+
docker logs --follow specifycloud-sp7demofish-1
50+
```
51+
52+
Recheck the running status of the instances and server state
53+
```bash
54+
docker ps;
55+
glances;
56+
```
57+
58+
Check a samlple of the instance urls in the browser to make sure they are running well. For a sample of them, make sure there are no errors when logging in.
59+
60+
If there are errors after running, or if there are migration issues, try to resolve in a timely manner.
61+
62+
Check migration status
63+
```bash
64+
docker exec specifycloud-sp7demofish-1 ve/bin/python manage.py showmigrations;
65+
```

0 commit comments

Comments
 (0)