You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**DISCLAIMER**: Make sure you know what you are doing. These steps will charge some services on your AWS account and require a minimum security skill to keep your environment safe.
250
-
251
-
* Pick up a Linux or MacOS.
252
-
* Install Python 3.7, 3.8 or 3.9 with [poetry](https://github.com/python-poetry/poetry) for package management
253
-
* Fork the AWS SDK for pandas repository and clone that into your development environment
254
-
255
-
* Then run the command bellow to install all dependencies:
256
-
257
-
``poetry install``
258
-
259
-
* Go to the ``test_infra`` directory
260
-
261
-
``cd test_infra``
262
-
263
-
* Install CDK dependencies:
264
-
265
-
``poetry install``
266
-
267
-
*[OPTIONAL] Set AWS_DEFAULT_REGION to define the region the Ray Test environment will deploy into. You may want to choose a region which you don't currently use:
268
-
269
-
``export AWS_DEFAULT_REGION=ap-northeast-1``
270
-
271
-
* Go to the ``scripts`` directory
272
-
273
-
``cd scripts``
274
-
275
-
* Deploy the `ray` CDK stack.
276
-
277
-
``./deploy-stack.sh ray``
278
-
279
-
* Configure Ray Cluster
280
-
281
-
``vi ray-cluster-config.yaml``
282
-
283
-
```
284
-
# Update the following file to match your enviroment
285
-
# The following is an example
286
-
cluster_name: ray-cluster
287
-
288
-
min_workers: 2
289
-
max_workers: 2
290
-
291
-
provider:
292
-
type: aws
293
-
region: us-east-1 # change region as required
294
-
availability_zone: us-east-1a,us-east-1b,us-east-1c # change azs as required
295
-
security_group:
296
-
GroupName: ray_client_security_group
297
-
cache_stopped_nodes: False
298
-
299
-
available_node_types:
300
-
ray.head.default:
301
-
node_config:
302
-
InstanceType: r5n.2xlarge # change instance type as required
303
-
IamInstanceProfile:
304
-
Arn: arn:aws:iam::{UPDATE YOUR ACCOUNT ID HERE}:instance-profile/ray-cluster-instance-profile
305
-
ImageId: ami-0ea510fcb67686b48 # latest ray images -> https://github.com/amzn/amazon-ray#amazon-ray-images
306
-
SubnetId: {replace with subnet within above AZs}
307
-
308
-
ray.worker.default:
309
-
min_workers: 2
310
-
max_workers: 2
311
-
node_config:
312
-
InstanceType: r5n.2xlarge
313
-
IamInstanceProfile:
314
-
Arn: arn:aws:iam::{UPDATE YOUR ACCOUNT ID HERE}:instance-profile/ray-cluster-instance-profile
315
-
ImageId: ami-0ea510fcb67686b48 # latest ray images -> https://github.com/amzn/amazon-ray#amazon-ray-images
0 commit comments