High latency when using Optimizely integration (JS tracker 2.6.0)

43 views
Skip to first unread message

Dejan

unread,
Apr 4, 2016, 5:40:10 AM4/4/16
to Snowplow
Hi guys!

As we didn't have any custom solution for Optimizely integration into Snowplow, we've upgraded Snowplow JS tracker to version 2.6.0 right after it's release and enabled Optimizely integration. Unfortunately, we were experiencing some issues with it (high latency), therefore we reverted JS tracker back to version 2.5.0.

Recently, I did some testing on Optimizely integration using various settings - see chart attached. It turned out that Optimizely integration parsing all data available causes quite high latency ~200ms. When I disabled Optimizely integration, but still using POST requests, latency dropped to ~30ms and when I switched to GET requests only, latency dropped to ~5ms. At the end I tried Optimizely integration (POST requests) parsing states data only and latency was ~50ms, but still quite noisy. 

Clojure collector is running on two t2.medium instances, allowing to scale to up to four instances, but it never scaled up during a test.

I understand there is more data to be processed by the server when Optimizely integration is enabled, therefore I am wondering whether I should use larger EC2 instances or something else would do the trick? Is that something you experienced as well or did we do something wrong?

I appreciate any help you can provide.

Best,
Dejan
optimizely_latency.png

Alex Dean

unread,
Apr 4, 2016, 8:23:28 PM4/4/16
to Snowplow
Hi Dejan,

If you are finding the Optimizely integration rather choppy in terms of latency, no need to downgrade while you investigate - you could keep running 2.6.0 but simply turn off the Optimizely integration. You are right - the Optimizely integration does make the event payloads much fatter, which can have an impact on the collector cluster's performance. A few options:
  1. Switch to a more powerful collector instance type
  2. Add latency as a factor into your cluster's auto-scaling rules
  3. Wait for the Optimizely "lite" context coming in 2.7.0: https://github.com/snowplow/snowplow-javascript-tracker/issues/466

Cheers,

Alex


--
You received this message because you are subscribed to the Google Groups "Snowplow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snowplow-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Co-founder
Snowplow Analytics
The Roma Building, 32-38 Scrutton Street, London EC2A 4RQ, United Kingdom
+44 (0)203 589 6116
+44 7881 622 925
@alexcrdean
Reply all
Reply to author
Forward
0 new messages