6b43f706ea43a776d1890080d3331d55395028dd
wiki/howto/windestimation.md
| ... | ... | @@ -19,6 +19,29 @@ To complete the training process successfully, you need to make sure that you ha |
| 19 | 19 | |
| 20 | 20 | In our docker registry under ``docker.sapsailing.com:443`` there is a repository called ``windestimationtraining`` where images can be found to run the training process in a mostly automated way. All you need is an account for ``docker.sapsailing.com:443`` and an account on ``sapsailing.com`` that has the ``TRACKED_RACE:EXPORT`` permission for all races in the archive server (see the ``raw-data`` role). Furthermore, you need a MongoDB with approximately 100GB of available space. This can be a MongoDB replica set, of course. All you need is the URI to establish the connection. |
| 21 | 21 | |
| 22 | +If you want to try the following on a plain Amazon Linux instance, try to start with an instance type that has fast SSD storage attached (NVMe) and 16GB of RAM, such as ``c5d.2xlarge``. SSH into it (probably with the ``ec2-user`` account), then try this: |
|
| 23 | + |
|
| 24 | +``` |
|
| 25 | + sudo -i |
|
| 26 | + # Launch cfdisk for the NVMe volume, give it a gpt partition table and create a single partition spanning the entire disk: |
|
| 27 | + cfdisk /dev/nvme1n1 |
|
| 28 | + mkfs.xfs /dev/nvme1n1p1 |
|
| 29 | + mount /dev/nvme1n1p1 /var/lib/mongo |
|
| 30 | + echo "[mongodb-org-4.4] |
|
| 31 | +name=MongoDB Repository |
|
| 32 | +baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/4.4/x86_64/ |
|
| 33 | +gpgcheck=1 |
|
| 34 | +enabled=1 |
|
| 35 | +gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc" >/etc/yum.repos.d |
|
| 36 | + yum update |
|
| 37 | + yum install -y mongodb-org-server mongodb-org-tools mongodb-org-shell docker |
|
| 38 | + chown mongod /var/lib/mongo |
|
| 39 | + chgrp mongod /var/lib/mongo |
|
| 40 | + systemctl start mongod |
|
| 41 | + systemctl start docker |
|
| 42 | + touch /tmp/windEstimationModels.dat |
|
| 43 | +``` |
|
| 44 | + |
|
| 22 | 45 | For your account that is equipped with the ``TRACKED_RACE:EXPORT`` permission you'll need the bearer token which you can obtain, when logged in on the web site, from [https://security-service.sapsailing.com/security/api/restsecurity/access_token](https://security-service.sapsailing.com/security/api/restsecurity/access_token). The value of the ``access_token`` attribute is what you will need in the following command: |
| 23 | 46 | |
| 24 | 47 | ``` |