Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(deadline): configure worker log listener port #257

Merged
merged 1 commit into from
Dec 11, 2020

Conversation

horsmand
Copy link
Contributor

@horsmand horsmand commented Dec 4, 2020

Fixes #190

Either a default port or a user supplied port will be configured for all
workers to listen on, for requests for their log stream. A helper method
is also provided to open up the port in the worker fleet's security
group to any provided IConnectable, like another security group or a CIDR.

Testing

I followed these steps for testing:

  1. Set up a render farm based on the All-in-AWS-Infrastructure-Basic TS example with these modifications:
    a. Added a Windows worker fleet added alongside the Linux fleet.
    b. Opened up the worker log listener ports in both fleets for the CIDR 10.0.0.0/24.
  2. Manually deployed another Windows host in my VPC.
  3. Installed Deadline onto it and connected it to my RCS.
  4. Opened Deadline Monitor and then connected to the logs for both of my workers.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@ddneilson ddneilson self-requested a review December 9, 2020 16:35
@@ -178,16 +186,23 @@ export interface WorkerInstanceConfigurationProps {
* environments.
*/
export class WorkerInstanceConfiguration extends Construct {
private static readonly DEFAULT_WORKER_PORT = 56032;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious... randomly selected? Or is this a standard port for Deadline?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a random selection, from what I've seen Deadline always randomizes this port. I couldn't find any other common software using this port and it's in the dynamic port range defined by IANA.

@@ -178,16 +186,23 @@ export interface WorkerInstanceConfigurationProps {
* environments.
*/
export class WorkerInstanceConfiguration extends Construct {
private static readonly DEFAULT_WORKER_PORT = 56032;

public readonly logListenerPort: number;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have a docstring.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

packages/aws-rfdk/lib/deadline/lib/worker-configuration.ts Outdated Show resolved Hide resolved
packages/aws-rfdk/lib/deadline/lib/worker-fleet.ts Outdated Show resolved Hide resolved
ddneilson
ddneilson previously approved these changes Dec 11, 2020
Fixes #190

Either a default port or a user supplied port will be configured for all
workers to listen on, for remote requests such as requsting  their log
stream. A helper method is also provided to open up the port in the worker
fleet's security group to any provided IConnectable, like another security
group or a CIDR.
@ddneilson ddneilson merged commit 6e518d4 into aws:mainline Dec 11, 2020
@horsmand horsmand deleted the wll branch December 11, 2020 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deadline Monitor unable to connect to workers to get logs
3 participants