<div>Thanks Doug.</div><div><includetail><div> </div><div>It's really helpful and we need this feature as well. Can you point out the bp or patch of this?</div><div><br></div><div>I think we will add "--replica-count" parameter within trove create request. So trove-api will create trove instance(aync create nova instance) and then create some replica trove instances(aync create nova instances). This is really useful for web front-end developers to create master and replica instances in the same time(they don't want to send multiple requests by themselves).</div><div><br></div><div>Regards,</div><div>tobe from UnitedStack </div><div><br></div><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>From: </b> "Doug Shelley"<doug@tesora.com>;</div><div><b>Date: </b> Wed, Aug 12, 2015 10:21 PM</div><div><b>To: </b> "openstack-dev@lists."<openstack-dev@lists.openstack.org>; <wbr></div><div></div><div><b>Subject: </b> Re: [openstack-dev] [trove]Implement the API to create masterinstance and slave instances with one request</div></div><div> </div>
<div>
<div>
<div>As of Kilo, you can add a —replica-count parameter to trove create —replica-of to have it spin up multiple mysql slaves simultaneously. This same construct is in the python/REST API as well. I realize that you still need to create a master first, but thought
I would point this out as it might be helpful to you.</div>
</div>
</div>
<div><br>
</div>
<div>Regards,</div>
<div>Doug</div>
<div><br>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>陈迪豪 <<a href="mailto:chendihao@unitedstack.com" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=chendihao@unitedstack.com&cc=&bcc=&su=&body=','_blank');return false;">chendihao@unitedstack.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>OpenStack List <<a href="mailto:openstack-dev@lists.openstack.org" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=openstack-dev@lists.openstack.org&cc=&bcc=&su=&body=','_blank');return false;">openstack-dev@lists.openstack.org</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday, August 11, 2015 at 11:45 PM<br>
<span style="font-weight:bold">To: </span>OpenStack List <<a href="mailto:openstack-dev@lists.openstack.org" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=openstack-dev@lists.openstack.org&cc=&bcc=&su=&body=','_blank');return false;">openstack-dev@lists.openstack.org</a>><br>
<span style="font-weight:bold">Subject: </span>[openstack-dev] [trove]Implement the API to create master instance and slave instances with one request<br>
</div>
<div><br>
</div>
<div>
<div>
<div>Now we can create mysql master instance and slave instance one by one.</div>
<div><br>
</div>
<div>It would be much better to allow user to create one master instance and multiple slave instances with one request.</div>
<div><br>
</div>
<div>Any suggestion about this, the API design or the implementation?</div>
<div></div>
</div>
</div>
</span>
</div><!--<![endif]--></includetail></div>