Welcome to the Xceed Community | Help
Community Search  

web farm and /XceedTemp

Sort Posts: Previous Next
  •  01-22-2008, 9:28 PM Post no. 6572

    web farm and /XceedTemp

    Hi, we've got multiple web servers, and currently using our database machine for /XceedTemp (and creating a virtual directory to the db machine). This isn't great, since it creates a single point of failure.

    The reason we put it on the db server is because if one machine saves the file locally, the next request may or may not come back to the same server.

    Is there any way to change the <img src=? Maybe with that, we can save the image to the local web server, then have the src be the name of the local machine instead of the virtual dns name.

    Any other ideas? Thanks.
  •  01-23-2008, 5:14 PM Post no. 6573 in reply to 6572

    Re: web farm and /XceedTemp

    You can change the location of the temporary file by using the ServerConfiguration class on the ChartServerControl­. Here is more information from our online documentation on changing different settings through the ServerConfiguration :

    <a href="http://doc.xceedsoft.com/products/XceedChart/ServerConfiguration_Temporary_files.html">http://doc.xceedsoft.com/products/XceedChart/ServerConfiguration_Temporary_files.html</a>
    <a href="http://doc.xceedsoft.com/products/XceedChart/ServerConfiguration_Temporary_file_management.html">http://doc.xceedsoft.com/products/XceedChart/ServerConfiguration_Temporary_file_management.html</a> <a href="http://doc.xceedsoft.com/products/XceedChart/Server_Configuration_Overview.html">http://doc.xceedsoft.com/products/XceedChart/Server_Configuration_Overview.html</a>

    André
    Software Developer and Tech Support
    Xceed Software Inc.
  •  01-23-2008, 6:35 PM Post no. 6574 in reply to 6573

    Re: web farm and /XceedTemp

    That's true, but how can we guarantee the user comes back to the same server? Imagine this scenario:

    - there are 2 web servers, ws01 and ws02, behind a load balancer (e.g. www.xceed.com)
    - user requests page from www.xceed.com. load balancer sends them to ws01
    - ws01 creates chart in /XceedTemp (or customized) path
    - user gets back html with <img> chart tag
    - the request for the <img> chart gets load balanced to ws02
    - file does not exist on ws02

    This doesn't usually happen since I think http keep-alives send you to the same machine. But we've seen it happen before. That's why in IIS, we create a virtual dir for /XceedTemp to point to a remote machine that is shared by all the web servers.

    I was hoping that maybe there's a way to override the <img> link. That way we can have the <img> link have the full path - e.g. ws01.xceed.com/XceedTemp/chart.png instead of just the virtual path - /XceedTemp/chart.png.

    The streaming approach would work, but it requires another .aspx page that doesn't really work in our situation. We'd need to somehow serialize all the info from the original page so that this .aspx can generate the chart.
  •  01-24-2008, 4:32 PM Post no. 6575 in reply to 6574

    Re: web farm and /XceedTemp

    Unfortunately, I'm not aware of any way to do what you want. If any one has a solution, please don't hesitate to share it!

    André
    Software Developer and Tech Support
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.