Azure IoT Remote Monitoring preconfigured solution
Перейти к файлу
Joe Rowley 3ca565624f Check for a shutdown signal in the webjob program before initializing data
We have seen intermittent cases where a couple of devices would be
bootstrapped, then about 7 seconds later four more devices. After some
investigation we found that on every fresh cloud deploy the web job would
go through two starts -- we suspect this is as it goes through the
staging, warmup and swap to production.

To avoid letting this happen we will watch the location of the shutdown
file that is created when shutdown is scheduled. If we see that before we
enter the initialization method then we will skip initialization since it
will likely be aborted mid-process.

In Debugging we have sometimes seen cases where initialization is started,
then the shutdown signal is immediatly received. However, in these cases
initialization has been able to complete successfully.

It may not be a perfect solution, but for now I think it's pretty solid.
2015-10-08 08:59:56 -06:00
.nuget Initial commit 2015-09-28 21:28:36 -07:00
Common Merge remote-tracking branch 'origin/keithcraig-fix-alerts-bugs-new-sql' into keithcraig-integration 2015-10-07 16:48:47 -07:00
DeviceAdministration Check for a shutdown signal in the webjob program before initializing data 2015-10-08 08:59:56 -06:00
EventProcessor/EventProcessor.WorkerRole Merge remote-tracking branch 'origin/alphonzo79-remove-dead-worker-role-code' into keithcraig-integration 2015-10-07 16:37:37 -07:00
Simulator/Simulator.WorkerRole Remove dead worker role code 2015-10-07 13:52:39 -07:00
.gitattributes Initial commit 2015-09-28 21:28:36 -07:00
.gitignore Initial commit 2015-09-28 21:28:36 -07:00
AppRolesForManifest.txt Initial commit 2015-09-28 21:28:36 -07:00
Common_Props.proj Initial commit 2015-09-28 21:28:36 -07:00
README.md update docs 2015-09-28 23:12:55 -07:00
RemoteMonitoring.sln Fix bug with rule conflicts 2015-10-06 17:30:38 -07:00
THIRDPARTYNOTICE (Azure IoT Suite Monitoring Solutions).txt Initial commit 2015-09-28 21:28:36 -07:00
build.cmd Initial commit 2015-09-28 21:28:36 -07:00
license.txt Initial commit 2015-09-28 21:28:36 -07:00

README.md

#Microsoft Azure IoT Suite ##Remote Monitoring preconfgured solution

##Contents of this repository

Web folder:

  • ASP.NET MVC 5 website containing user dashboard and device portal to manage IoT devices (add, remove, view, etc)

Infrastructure folder:

  • APIs and application logic to support telemetry and device operations

Simulator folder:

  • Simulator (Azure Web Job) that simulates one or more devices that send data to the IoT Hub for testing and troubleshooting

EventProcessor folder:

  • Azure Worker Role that hosts an Event Hub EventProcessorHost instance to handle the event data from the devices forwarding event data to other back-end services or to the remote monitoring site

Visual Studio solution:

  • RemoteMonitoring: contains both the Dashboard web app, the EventProcessor worker role, and the Simulator worker role.