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
+
initial_workers: 2
289
+
min_workers: 2
290
+
max_workers: 2
291
+
292
+
provider:
293
+
type: aws
294
+
region: us-east-1 # change region as required
295
+
availability_zone: us-east-1a,us-east-1b,us-east-1c # change azs as required
296
+
security_group:
297
+
GroupName: ray_client_security_group
298
+
cache_stopped_nodes: False
299
+
300
+
available_node_types:
301
+
ray.head.default:
302
+
node_config:
303
+
InstanceType: r5n.2xlarge # change instance type as required
304
+
IamInstanceProfile:
305
+
Arn: arn:aws:iam::{UPDATE YOUR ACCOUNT ID HERE}:instance-profile/ray-cluster-instance-profile
306
+
ImageId: ami-0ea510fcb67686b48 # latest ray images -> https://github.com/amzn/amazon-ray#amazon-ray-images
307
+
NetworkInterfaces:
308
+
- AssociatePublicIpAddress: True
309
+
SubnetId: {replace with subnet within above AZs}
310
+
Groups: [{ID of group `ray_client_security_group` created by the step above}]
311
+
DeviceIndex: 0
312
+
313
+
ray.worker.default:
314
+
min_workers: 2
315
+
max_workers: 2
316
+
node_config:
317
+
InstanceType: r5n.2xlarge
318
+
IamInstanceProfile:
319
+
Arn: arn:aws:iam::{UPDATE YOUR ACCOUNT ID HERE}:instance-profile/ray-cluster-instance-profile
320
+
ImageId: ami-0ea510fcb67686b48 # latest ray images -> https://github.com/amzn/amazon-ray#amazon-ray-images
321
+
NetworkInterfaces:
322
+
- AssociatePublicIpAddress: True
323
+
SubnetId: {replace with subnet within above AZs}
324
+
Groups: [{ID of group `ray_client_security_group` created by the step above}]
0 commit comments