This article describes how to configure MongoDB’s WiredTiger memory cache in Red Hat Mobile Application Platform (RHMAP) to prevent high-usage memory issues and Nagios alerts. If the WiredTiger cache consumes all the memory available for a container, memory issues and Nagios alerts will occur.
The WiredTiger storage engine is the default storage engine starting in MongoDB version 3.2. It uses MultiVersion Concurrency Control (MVCC) architecture for write operations in order to allow multiple different modifications to the same document at the same time.
WiredTiger also caches data and creates checkpoints to give you the ability to recover anytime it’s necessary. For example, if a MongoDB image deployed in a container fails, it is useful to recover the data that was not persisted. Additionally, WiredTiger can recover un-checkpointed data with its journal files. See the journal documentation and snapshots and checkpoint documentation for more information.
Continue reading “Configuring the MongoDB WiredTiger memory cache for RHMAP”
Following the blog post series, today, finally we have Part 2, this chapter tries to explain in an easy way how to debug your hybrid app using the Safari web inspector.
As you know sometimes debugging a mobile app on a mobile device can be hard work, for Android and Web pages we have the Chrome Developer tools, this has been an extended way to do it, Part 3 of the blog post series will cover this method, for iOS we have something similar, called the Safari web inspector.
Continue reading “How to debug your mobile hybrid app on iOS”
How do customers build an end-to-end IoT solution using commercial grade, open source products? This is the question we (Patrick Steiner, Maggie Hu and I) wanted to address with our session at the Red Hat Summit, Boston. The end-to-end solution is based on three-tier Enterprise IoT Architecture, which integrates IoT data with existing business processes and the human element.
Continue reading “Building a Secure IoT Solution: Summit 2017”
Getting up and running with local development for Red Hat Mobile Application requires that you run MongoDB and Redis locally. Doing so isn’t particularly difficult if you follow online guides, but it would be much more straightforward if you could just get these pieces of software up and running in a single command and not need to worry about versioning, creating data directories, setting permissions, and compiling some things such as Redis from source. It would be even better if you could easily switch versions. This is where containers shine.
In the next few paragraphs, we’ll demonstrate how you can run any almost any version of MongoDB and Redis with a single command on a machine that has the Docker service installed.
NOTE: This is not an extensive Docker CLI tutorial; just enough to learn basic commands that will allow you to get MongoDB and Redis up and running easily.
Continue reading “Local Development Setup for Red Hat Mobile using Docker”
Do you want to speed up your debugging process? This blog post is designed to help you do just that by empowering you with the knowledge of how to debug RHMAP Cloud Apps and MBaaS services locally using VS Code. For an introduction to running RHMAP client apps locally, see How to Setup your Apps to Target Locally on Device.
Continue reading “Debugging RHMAP Apps locally with Visual Studio Code (VS Code)”
This blog post is Part 1 in a series of three blog posts, explaining how to prepare the app for debugging (setup) and how to debug on iOS and Android.
- How to setup your apps to target locally on device (Part 1)
- How to debug your mobile app on iOS (Part 2)
- How to debug your mobile app on Android (Part 3)
How to debug your app locally on a device is going to be the first chapter and explained below.
Continue reading “How to Setup your Apps to Target Locally on a Device”
This article shows how you can write RHMAP Cloud Apps to perform push notifications to:
- All devices subscribed to a ‘category’, enabling the possibility of users choosing the notification categories they find interesting.
- A specific group of users, providing efficient communication with a defined set of users.
Continue reading “Push Notifications to the Right People and Devices”
Mobile App development does not stop when you build your app and have a binary ready to be installed on the device. Regardless of how good your code is or how much unit and regression testing you performed, there are elements that need to be tested under different circumstances, for example, data traffic, the number of users, location, and high latency in the mobile network.
Continue reading “Mobile Apps Load Testing”
Red Hat Mobile Application Platform (RHMAP) supports an agile approach to developing, integrating, and deploying enterprise mobile applications. Most likely, your mobile apps will include one or more cloud apps which will require persistence support such as a Mongo Database. But managing databases is not always easy, as command line support for this databases is complex and not always available.
To ease this pain, Mongo Express can be used as an database GUI. For the mongo databases in your cloud apps, it is a powerful and intuitive tool which can be used in conjunction or as substitute for the default database browser. The main benefits from using “Mongo Express” instead of “Data Browser” are:
- Can run complex queries
- In-depth stats for every view
- Supports BSON types as TimeStamp() or DBRef()
IMPORTANT: there are some implications when using Mongo Express as a database manager:
- Mongo Express can only manage the databases in one Cloud App and environment at a time
- There is no authentication by default when using Mongo Express as explained in this article so take into account all the security issues that this may arise 
- Users running the platform on the RHMAP should upgrade their databases if it was not upgraded before
 Check the Annex ‘how to add authentication’ to overcome this issue
Continue reading “Manage your Mongo Databases in RHMAP with Mongo Express”