<div dir="ltr">I would imagine you could add your own indexes to mongodb to speed up queries of the field you match in the presets? yes/no?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 3, 2017 at 10:52 AM, Michael Ducharme <span dir="ltr"><<a href="mailto:mducharme@gmail.com" target="_blank">mducharme@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Right, but isn't that what databases are for? If something like the serial number field is indexed, then doing a query where the serial number matches should be pretty efficient I would think? Granted, I don't know MongoDB terribly well other than that it uses JSON rather than normal SQL table structure.<br><br></div>I would not use a preset every single inform, only every 'BOOT'. Do devices really do a 'BOOT' often enough that this causes performance issues? Even though we have thousands of routers, I would expect to only have maybe a dozen BOOT messages in a day. Or are you saying that even doing a preset for a 'BOOT' event causes performance issues with every periodic inform?<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 3, 2017 at 10:48 AM, Dan Morphis <span dir="ltr"><<a href="mailto:dan@milkcarton.com" target="_blank">dan@milkcarton.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Its not that the preset system is so inefficient, its that if you have thousands of devices, and thousands of presets, then each time a device does an inform/boot/etc genie has to figure out which of the thousands of presets apply to the device.</div><div class="m_-6899139995593416227HOEnZb"><div class="m_-6899139995593416227h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 3, 2017 at 9:18 AM, Michael Ducharme <span dir="ltr"><<a href="mailto:mducharme@gmail.com" target="_blank">mducharme@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Why is the preset system so inefficient? We had intended on using a preset per device as well, just to set the PPPoE username and password and that is it. Would we experience similar performance issues?<br></div><div class="m_-6899139995593416227m_-8792148867431997475HOEnZb"><div class="m_-6899139995593416227m_-8792148867431997475h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 3, 2017 at 5:37 AM, Dan Morphis <span dir="ltr"><<a href="mailto:dan@milkcarton.com" target="_blank">dan@milkcarton.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>I'm going to presume you have some system in place to track your subscribers, the device assigned to the subscriber and the voip number?</div><div><br></div><div>You need to build a bridge between the two. Then use flags to set the state of the device. For example in our setup, modems can be either bridged or routed. In genie I have a preset triggered on 1 BOOT that runs a provision script. This script then makes a rest call to our subscriber management software with the OUI, product class and serial number. The subscriber management software then figures out what state the modem should be in and returns that information via JSON. Once that information flows back to the provision script the appropriate tag is set on the device so the next phase of the process can happen.</div><div><br></div><div>In your setup, you can have the external system return the voip information and set that on the device.</div><div><br></div><div>This is using v1.1 of genie. <span class="m_-6899139995593416227m_-8792148867431997475m_-5405930006336639927HOEnZb"><font color="#888888"><br><br><div>-dan</div></font></span></div><div><div class="m_-6899139995593416227m_-8792148867431997475m_-5405930006336639927h5"><div><br>On May 2, 2017, at 11:09 PM, Marco Marino <<a href="mailto:marino.mrc@gmail.com" target="_blank">marino.mrc@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="auto">What do you mean with 'different system'?<div dir="auto">I need to configure voip accounts on thousands of device filtered by mac addresses. Is there a better way to do this?</div><div dir="auto">Thank you</div></div><div class="gmail_extra"><br><div class="gmail_quote">Il 02 Mag 2017 23:42, "Dan Morphis" <<a href="mailto:dan@milkcarton.com" target="_blank">dan@milkcarton.com</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The route your going down (preset per device) is one fraught with performance issues. It is much better to Genie pull device specific parameters from a different system and set them, then to use presets. We went down that route before and struggled to do 20 r/s. By reworking our process to store the device specific settings in a different system and only pull them on bootstrap/config we can now do 40+ r/s hovering around 20% load.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 2, 2017 at 4:48 AM, Marco Marino <span dir="ltr"><<a href="mailto:marino.mrc@gmail.com" target="_blank">marino.mrc@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, I'm trying to create a new preset for a device, using mac address<br>
as filter but it seems that the preset doesn't start. I have other<br>
devices of the same type (same vendor and model) associated to the<br>
same kind of preset (using different mac addresses) and all works<br>
well. Someone can help me to identify the problem?<br>
Thank you<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mail<wbr>man/listinfo/users</a><br>
</blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mail<wbr>man/listinfo/users</a><br>
<br></blockquote></div></div>
</div></blockquote><blockquote type="cite"><div><span>______________________________<wbr>_________________</span><br><span>Users mailing list</span><br><span><a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a></span><br><span><a href="http://lists.genieacs.com/mailman/listinfo/users" target="_blank">http://lists.genieacs.com/mail<wbr>man/listinfo/users</a></span><br></div></blockquote></div></div></div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mail<wbr>man/listinfo/users</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mail<wbr>man/listinfo/users</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mail<wbr>man/listinfo/users</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>