<div dir="ltr"><div>I have a feeling you were about to suggest the fix that I have outlined below. It involves no code change just a change in how you set up your cluster template such that your @sc-core tag squeezes within the 255 character limit.</div>
<div><br></div><div>Things to note about EC2-VPC and the this issue: </div><div>1) EC2-VPC limits their tag lengths to 255 characters (this is not true for EC2-Classic)</div><div>2) @sc-core tag and (non-truncated) value are needed for starcluster to function properly</div>
<div>3) @sc-core tag values are serialized (via json) and compressed to make them usable but reduce their size</div><div>4) changing zlib.compress() function to use level 9 (highest compression) instead of default 6 doesn&#39;t solve the problem</div>
<div><br></div><div>SOLUTION</div><div>Changing your [cluster]/cluster template configuration in the configuration file such that &#39;master_instance_type&#39; and &#39;node_instance_type&#39; are of same type (like m1.small) AND &#39;master_image_id&#39; and &#39;node_image_id&#39; use the same ID (like ami-xxxxxxxx) will allow compression such that the @sc-core tag value can be compressed to a size that is under 255 characters.</div>
<div><br></div><div>You can use VPC even if your master and worker nodes are of different types or use different AMI&#39;s. To allow this type of variation and not violate the 255 character limit, I would suggest creating a cluster template with the AMI id and type you want for the master node for both master and (worker) node. Then use starcluster addnode with -i and -I options to add all the worker nodes you want of the TYPE and AMI ID you want. I have tried it and it seems to work perfectly.</div>
<div><br></div><div>Just in case someone runs into a similar problem in the future, below are the dictionary of values that are serialized and compressed to create the @sc-core tag&#39;s value:</div><div><br></div><div>{&#39;disable_cloudinit&#39;: False, &#39;master_instance_type&#39;: &#39;m1.small&#39;, &#39;disable_queue&#39;: False, &#39;subnet_id&#39;: &#39;subnet-xxxxxxxx&#39;, &#39;availability_zone&#39;: &#39;us-east-1b&#39;, &#39;node_image_id&#39;: &#39;ami-xxxxxxxx&#39;, &#39;node_instance_type&#39;: &#39;m1.small&#39;, &#39;use_nfs_crossmnt&#39;: True, &#39;cluster_size&#39;: 1, &#39;master_image_id&#39;: &#39;ami-xxxxxxxx&#39;, &#39;dns_prefix&#39;: False}</div>
<div><br></div><div>Thanks,</div><div>-Jennifer</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 12, 2013 at 1:04 PM, Justin Riley <span dir="ltr">&lt;<a href="mailto:notifications@github.com" target="_blank">notifications@github.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p><a href="https://github.com/jmstaab" target="_blank">@jmstaab</a> Yep, that&#39;s the issue. The reason I asked for the config is I&#39;m curious what is making the value that long. I have a more general fix for this but in the mean time would you mind pasting your [cluster] section? Thanks!</p>


<p style="font-size:small;color:#666">—<br>Reply to this email directly or <a href="https://github.com/jtriley/StarCluster/issues/348#issuecomment-30446236" target="_blank">view it on GitHub</a>.<img height="1" width="1"></p>
</blockquote></div><br></div>