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

#3256 Provider Scaling out Interface-Add all apis #3692

Merged

Conversation

ssxlulu
Copy link
Contributor

@ssxlulu ssxlulu commented Dec 9, 2019

For #3256.

Changes proposed in this pull request:

  • Add all related apis

java ${JAVA_OPTS} -classpath ${CLASS_PATH} ${MAIN_CLASS}
Copy link
Member

Choose a reason for hiding this comment

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

Moving port to configFile maybe better. You can refer Bootstrap in sharding-proxy.

@@ -49,72 +41,36 @@
@Slf4j
public class Bootstrap {

private static final int PORT = Integer.parseInt(System.getProperty("port", "8080"));

Copy link
Member

Choose a reason for hiding this comment

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

Moving port to configFile maybe better. You can refer Bootstrap in sharding-proxy.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will submit a new issue for config related, so here will stay as it is?

"pushTimeout": 1000,
"concurrency": 3
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Please end file with blank line.

@Data
public class Job {
private int id;
}
Copy link
Member

Choose a reason for hiding this comment

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

Can you replace this class by ShardingScalingJob?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it is a good idea.


private final BlockingQueue<Record> queue = new ArrayBlockingQueue<>(ScalingContext.getInstance().getServerConfiguration().getBlockQueueSize());
private final BlockingQueue<Record> queue = new ArrayBlockingQueue<>(10000);
Copy link
Member

Choose a reason for hiding this comment

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

Why do you use hardcode in there?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will submit a new issue for config related.

@KomachiSion KomachiSion added this to the 5.0.0 milestone Dec 10, 2019
@KomachiSion KomachiSion merged commit 576985b into apache:sharding-scaling Dec 10, 2019
@ssxlulu ssxlulu deleted the sharding-scaling-issue-3256 branch December 10, 2019 07:24
@terrymanu terrymanu modified the milestones: 5.0.0, 4.1.0 Mar 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants