Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Due to some maintenance operations, stambia.org will be switched to read-only mode during the 13th November. It will be possible to read and download, but impossible to post on the forums or create new accounts. For any question please contact the support team.

Topic-icon Question Can we schedule a delivery on an event in Web Analytics

More
16 Jan 2015 17:05 #1 by Virginie_Samson
Virginie_Samson created the topic: Can we schedule a delivery on an event in Web Analytics
Hello
Can we schedule a delivery on an event in Web Analytics ?
Event like :
** File arrived
** something written in a table
** etc.

Thanks
Virginie
More
16 Jan 2015 18:08 #2 by Thomas BLETON
Thomas BLETON replied the topic: Can we schedule a delivery on an event in Web Analytics
This has to be done in the Process development. Not in Analytics.

For example you can make a process with a FileWait action which will watch a specified directory every 10 seconds, indefinitely.
Have a look the attached process.
This attachment is hidden for guests.
Please log in or register to see it.

FileWait watches the "datafiles" directory and executes the "TreatFile" action for each file named "*.go". The idea is to bind an "ExecuteDelivery" action.

The SqlOperation action also has this kind of feature : use the parameters "Wait Nb Rows", "Wait Count Select", "Wait Poll Interval"...

If you don't want a permanent running process, you can set the timeout to some positive value, and schedule this process at your preferred periodicity.

This message has an attachment file.
Please log in or register to see it.

More
16 Jan 2015 18:23 #3 by Virginie_Samson
Virginie_Samson replied the topic: Can we schedule a delivery on an event in Web Analytics
Thanks
How many waiting process could we manage in the same time ?
Won't it use son server's memory ?
More
13 Feb 2015 15:55 - 13 Feb 2015 16:31 #4 by Thomas BLETON
Thomas BLETON replied the topic: Can we schedule a delivery on an event in Web Analytics
This kind of process can be very small, if it is dedicated to "watching", and then launching a delivery as an Execute Delivery.
Here is a screenshot of "jvisualvm" (available in most JDKs), showing the memory used when lauching 1, 3, or 15 instances of the fileWaitForever process.
As you can see, there is no much difference : the peeks vary from about 25Mb to 30Mb. :)




Edit : this measure has been done without "input data", just to show the small impact on memory of those waiting action. In real life, if many FileWait actions receive many files at the same time, it is important to carry out some load testing and memory analysis.
Attachments:
Last Edit: 13 Feb 2015 16:31 by Thomas BLETON.