{"id":1451,"date":"2017-09-23T21:55:41","date_gmt":"2017-09-23T21:55:41","guid":{"rendered":"http:\/\/inchoo.net\/?p=29231"},"modified":"2017-09-23T23:14:54","modified_gmt":"2017-09-23T23:14:54","slug":"configure-origin-shielding-and-timeout-settings-in-fastly","status":"publish","type":"post","link":"https:\/\/www.sushilkumar.ind.in\/blog\/magento-2\/configure-origin-shielding-and-timeout-settings-in-fastly\/","title":{"rendered":"Configure Origin shielding and timeout settings in Fastly"},"content":{"rendered":"<p align=\"left\">In the previous article I wrote on how to register a Fastly account and install &amp; configure Fastly module for Magento 2 in order to improve your store performance.<\/p>\n<p align=\"left\">In this article I\u2019m going to talk about how to fine tune Fastly\u2019s service performance by configuring <strong>Origin shielding<\/strong> and <strong>timeout settings<\/strong>.<\/p>\n<p align=\"left\">\n<h2 align=\"left\">Origin shielding<\/h2>\n<p align=\"left\">Origin shielding is Fastly\u2019s service feature which reduces the load on your origin server by routing all requests to a specfic <strong>Point of Presence<\/strong> (POP) which you have designated as a shield node to your origin.<\/p>\n<h4 align=\"left\">How shielding works<\/h4>\n<p align=\"left\">With shielding enabled, when the first request for content arrives at one of the POP\u2019s, for e.g. <strong>POP A<\/strong>, POP A doesn\u2019t have that content cached. The request is passed to the <strong>Shield POP<\/strong> which also doesn\u2019t have the content cached and passes request to the customers <strong>Origin server<\/strong> to fetch the content and store it in cache. The cached content is then passed to the POP A and served to the user.<\/p>\n<p align=\"left\">Now, when another request arrives at <strong>POP B<\/strong> instead of POP A, POP B will pass request to the Shield POP, and since the Shield POP already has a cached copy from the first request, no future requests for the content would be passed along to the customer\u2019s origin server until the shield POP\u2019s cached copy of it expires.<\/p>\n<h2 align=\"left\"><b>Backend timeouts<\/b><\/h2>\n<p align=\"left\">A <strong>backend<\/strong> is an address (IP or domain) from which Fastly pulls content. Backend timeouts define how long will Fastly wait for backend operations to complete.<\/p>\n<p align=\"left\">You can set three different timeouts:<\/p>\n<ol>\n<li><strong>Connect timeout<\/strong> \u2013 how long to wait for a timeout in milliseconds. (default: 1000ms)<\/li>\n<li><strong>F<\/strong><strong>irst byte timeout \u2013 <\/strong>limits how long the processing time of the backend may be. (default: 10000ms)<\/li>\n<li><strong>B<\/strong><strong>etween bytes timeout<\/strong> \u2013 limits how long we will wait between for two subsequent successful reads on the backend connection. (default: 15000ms)<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h2>Fastly configuration<\/h2>\n<p align=\"left\">You can configure Origin shielding and Backend timeout in the Fastly module by going to:<\/p>\n<p><em> Magento admin &gt; Stores &gt; Configuration &gt; Advanced &gt; System &gt; Full Page Cache &gt; Fastly Configuration<\/em><\/p>\n<p>Under the Fastly Configuration, click on the <strong>Backend settings<\/strong>:<\/p>\n<p align=\"left\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-29233\" src=\"\/\/www.sushilkumar.ind.in\/blog\/wp-content\/uploads\/2017\/09\/configure-origin-shielding-and-timeout-settings-in-fastly.png\" alt=\"\" width=\"760\" height=\"474\" \/><\/p>\n<p align=\"left\">There you will see a list of backends. Click on the cog icon next to the backend for which you want to configure <strong>Shielding<\/strong>.<\/p>\n<p align=\"left\">The modal window will pop up with the following content:<\/p>\n<p align=\"left\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-29238\" src=\"\/\/www.sushilkumar.ind.in\/blog\/wp-content\/uploads\/2017\/09\/configure-origin-shielding-and-timeout-settings-in-fastly-1.png\" alt=\"\" width=\"760\" height=\"420\" \/><\/p>\n<p align=\"left\">For the Shield value you should select Datacenter close to your backend. As for backend timeout settings, it\u2019s best to leave default values or set them according to your needs. Press the <strong>Upload<\/strong> button in the upper right corner to apply your changes.<\/p>\n<p align=\"left\">That\u2019s it, you have successfully fine tuned your Fastly service.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"\/\/www.sushilkumar.ind.in\/custome-devlopment\/\">Do you need any custome Development Click here and fill the form with full your requirement<\/a> and after i will send the quotes of your work requirements.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the previous article I wrote on how to register a Fastly account and install &#38; configure Fastly module for Magento 2 in order to improve your store performance. In this article I&#8217;m going to talk about how to fine tune Fastly&#8217;s service performance by configuring Origin shielding and timeout settings. Origin shielding Origin shielding&#8230;<br \/>\nThe post Configure Origin shielding and timeout settings in Fastly appeared first on Inchoo. Do you need any custome Development Click here and fill the form with full your requirement  and after i will send the quotes of your work requirements&#8230;.<\/p>\n","protected":false},"author":1,"featured_media":1452,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[312,256,314,20,355,356,357],"tags":[316,260,318,22,358,359,360],"class_list":["post-1451","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-cdn","category-configuration","category-fastly","category-magento-2","category-origin","category-shield","category-timeout","tag-cdn","tag-configuration","tag-fastly","tag-magento-2","tag-origin","tag-shield","tag-timeout"],"jetpack_publicize_connections":[],"acf":[],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/www.sushilkumar.ind.in\/blog\/wp-content\/uploads\/2017\/09\/configure-origin-shielding-and-timeout-settings-in-fastly.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p99pkJ-np","_links":{"self":[{"href":"https:\/\/www.sushilkumar.ind.in\/blog\/wp-json\/wp\/v2\/posts\/1451"}],"collection":[{"href":"https:\/\/www.sushilkumar.ind.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sushilkumar.ind.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sushilkumar.ind.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sushilkumar.ind.in\/blog\/wp-json\/wp\/v2\/comments?post=1451"}],"version-history":[{"count":0,"href":"https:\/\/www.sushilkumar.ind.in\/blog\/wp-json\/wp\/v2\/posts\/1451\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sushilkumar.ind.in\/blog\/wp-json\/wp\/v2\/media\/1452"}],"wp:attachment":[{"href":"https:\/\/www.sushilkumar.ind.in\/blog\/wp-json\/wp\/v2\/media?parent=1451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sushilkumar.ind.in\/blog\/wp-json\/wp\/v2\/categories?post=1451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sushilkumar.ind.in\/blog\/wp-json\/wp\/v2\/tags?post=1451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}