[
https://issues.apache.org/jira/browse/SOLR-8389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16299924#comment-16299924
]
Amrit Sarkar commented on SOLR-8389:
------------------------------------
I started working on extending the patch and collaborated with CDCR module, but
was pulled away to professional duties and was not able to work further. I
wrote a very rough patch, cleaning it now and should be able to get it ready
soon. *PFA screenshot* of how {{cdcr.json}} looks like and sample CREATE
collection command:
{code}
http://localhost:8983/solr/admin/collections?action=CREATE&name=source_col&numShards=1&replicationFactor=1&cdcr=true&cdcr.replica.source=source_col&cdcr.replica.target=target_col&cdcr.replica.zkHost=localhost:8574
{code}
[~prusko], I have extended your code to support nested json formatted
properties like below:
{code}
{
"replica":[{
"source":"source_col",
"zkHost":"localhost:8574",
"target":"target_col"}],
"replicator":{
"schedule":1000,
"threadPoolSize":2,
"batchSize":128},
"buffer":{"defaultState":"disabled"},
"updateLogSynchronizer":{"schedule":60000}}
{code}
In this example, not a single cdcr property mention is required in
{{solrconfig.xml}} and using default configuration, a very significant and long
time improvement coming.
[~erickerickson], I think I will be able to incorporate the target collection
being optional and use the same source collection name as target if not
specified quite easily.
[~prusko] [~erickerickson] [~varunthacker] [~shalinmangar], I will be posting
the updated patch real soon, hopefully before the year end and will be looking
forward to your feedback and comments.
> Convert CDCR peer cluster and other configurations into collection properties
> modifiable via APIs
> -------------------------------------------------------------------------------------------------
>
> Key: SOLR-8389
> URL: https://issues.apache.org/jira/browse/SOLR-8389
> Project: Solr
> Issue Type: Improvement
> Components: CDCR, SolrCloud
> Reporter: Shalin Shekhar Mangar
> Attachments: SOLR-8389.patch, Screen Shot 2017-12-21 at 5.44.36 PM.png
>
>
> CDCR configuration is kept inside solrconfig.xml which makes it difficult to
> add or change peer cluster configuration.
> I propose to move all CDCR config to collection level properties in cluster
> state so that they can be modified using the existing modify collection API.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]