Skip to content
This repository was archived by the owner on Jun 16, 2023. It is now read-only.
This repository was archived by the owner on Jun 16, 2023. It is now read-only.

Not clear about how to use User Defined Scheduler #665

@Chenfengldw

Description

@Chenfengldw

In the document: http://jstorm.io/ProgrammingGuide/AdvancedUsage/UserDefined/Scheduler.html

It shows many settings and also a demo code, but in which file to write these settings?

The code:
WorkerAssignment worker = new WorkerAssignment(); worker.addComponent(String compenentName, Integer num); //Add a task on this worker worker.setHostName(String hostName); //force this worker on one machine worker.setJvm(String jvm); //this can be skipped, set jvm parameters of this worker worker.setMem(long mem); //this can be skipped, set the worker's memory size worker.setCpu(int slotNum);

Where should I put them? Shall I put them in the topology code?

I am really confused by the document

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions