Making a database in Redis - database

So I want to make a database on Redis with simple keys and values and I want to visualize it with grafana. So grafana requires me to put the address(redis://) but I have no idea how to get that. I know how to open Redis on my terminal with redis-cli, but no idea how to get a web address for it cause what i have is the port in this form, 127.0.0.1:6379>. I am an extreme noob in both these tools, so some guidance would be appreciated.

Related

BLOB database setup

I collected lots of data (images, pdf's,...) over some years. For my start-up, I like to be able to access this data through a web application as well as a website. All of the data has a relation with each other reaching from example images, contact cards, and bills,... so I would like to query the data by inserting tag filters. I am a very beginner in this stuff but would love to get a good basis and self-education, so I can maintain and manage my database. A connection with normal SQL data is also necessary. I assume the setup of a central database to connect later on web applications/website/mobile apps is the first thing to create....? If somebody can help me at least with some advice on how to start, I would be very happy.
I searched a lot, but as a newbie I get overwelmed by all kinds of software.
I would love to get some help on how to start in the right way.

Best way to communicate between two programmes (VB.NET)

Afternoon,
I'm looking for some advice on a project I am working on.
Presently I have 2 Console Applications (That run 2 separate API's one for the phone system ACD and one of the Call Recorder).
These churn through traffic and store information in a database ready for a client application (Windows Form) to obtain and use.
At present I am storing the information in a SQL Table and using calls to and from the SQL database in both the Console Applications and Windows Form application.
Is this best practice? In my experience under load the SQL Server could slow down and I don't like the idea of relying on DB requests to send the information back.
Is there a better way I could communicate between my Console Applications and my WIndows Form? I was potentially thinking that TCP messages from one to the other on a port would work and then use the Windows Form to use the 'stream' to perform its actions rather than getting the information from the database.
The reason being is ideally I'd like to have the 'database' as stored within memory for quicker retrieval than using the SQL DB.
Any and all advice is fully appreciated. Please give me an explanation as to why your suggestion is efficient as I would like to learn from this rather than just 'do'
Many Thanks!
James

Is an intermediate server for communication between Cloudant server and mobile device advisable?

I am new to servers and online databases, so please bear with me.
I have a question regarding database server communication on mobile devices as follows:
I am currently developing a game application on iOS. I have set up a non-SQL database on Cloudant and I would like to access that data on my iOS device. I have to update multiple database entries each time I complete a round, and I also need to read multiple entries on my database to refresh the leaderboard. I have tried to access multiple entries on Cloudant individually via device before, but most of them returned as timeout.
Thus, right now I have written several PHP scripts on my application server so that my device only needs to access the script once, and do multiple updates on my database or filter through the data I require from Cloudant. However, this means I need an additional server, meaning higher costs. I feel there should be a better or more elegant solution out there, and thus I would like to ask for help from everybody out here. Is it better to do all the updates directly from the device, or to enlist the help of a 3rd party?
Thanks for your time!
For security reasons alone it is necessary to use a server in front of the cloudant database. I assume you don't want every user of your app to be able to access the whole database. Also, the reasons you gave seem valid to me. It's generally a good idea to reduce the number and size of requests for a mobile application. Also, this might allow you to do some caching in the PHP server, ultimately reducing your costs.

Erlang: 2 database on 2 webserver?

I have created a blogging system with php+postgresql.
Now I want to add a web chat ( in REAL TIME for Million of users simultaneously ) where every message is saved in database.
I am thinking to use Erlang+Mnesia on a different webserver for this issue.
Message's table will be like this:
message_id, user_id, message, date
user_id should be related with users table in Postgresql database in another webserver.
How can I do that without lose performance ?
If you have any other creative solutions tell me please ;).
I'm not sure why you want to save every single message in a database, but mnesia doesn't sound like a particularly good choice for doing that. Mnesia is more of a distributed key-value store, that you can use to keep the state of your application, when you need to store "tabular data" and query it, in a simple to medium-complex fashion.
For large amounts of text, I've heard lucene is supposed to be good, it has fulltext search features etc. which are said to be efficient, you might want to look into it:
Apache Lucene Project page
Other than that, using erlang as chatserver, using mnesia to hold all the other state sounds like a good idea, You could write a javascript client that uses something like JSONP (to overcome the cross-domaine-issue) and mochiweb on the erlang site to do the webserver part.
Writing the rest of the core chat system should be fairly simple, the fun part, so to say :)
Mnesia can certainly do what you suggest but if you've already got postgres set up is there some reason you don't want to use that? It might be simpler than creating a whole seperate service and if you want erlang to run the chat service then it has postgres drivers.
This project is using postgresql with great success.
http://zotonic.com/
You may want to use the same code for db access to postgresql.

Monitoring a database instance

Anyone have any idea? And any open source sofware which also seens to perform this kind of functionality?
I'm not sure what you need, but would http://www.nagios.org/ be enough for your purposes?
What database? What platform?
If it's MySQL, there are many monitoring applications around - for example, the MySQL GUI Tools include a Health Monitor widget (on OS X)
Also, phpMyAdmin shows statistics from the MySQL server.
You could also write a simple script that connects to the database, executes some trivial command and check it returns a known value. If it doesn't, send an alert somewhere.
This depends a lot on what kind of database and what you're monitoring for.
Things you might be monitorring for:
Is the database still up?
How heavily loaded is the database?
Deadlocks?
Security events?
Exceptions?
Perhaps you could edit your question to fill in a bit more info?
Have you looked at OpenNMS?
You might want to look at cacti (http://www.cacti.net/what_is_cacti.php) which is general purpose tool for giving graphical representations of any type of data. We use it to see how healthy our webservers and mysql servers are. But it does not have any alert system (in case something critical happens and you need to take immediate action) as far as I know for which you might want to consider nagios as pointed by someone already. See the screenshots below for mysql below to have an idea. The screenshots show various graphs for showing various states of mysql server over a period of time:
http://www.xaprb.com/blog/2008/05/25/screenshots-of-improved-mysql-cacti-templates/
IF your database is other than mysql then google for "your_database_name cacti" to find templates for your database.
I'm not sure is I understand your question but I use nagios to monitor just about anything on my server...
What about Nagios?
Here are some recommended scripts for MySQL, MS-SQL, Oracle:
http://www.consol.de/opensource/nagios/
+1 to the suggestion you give us some more details as to what you want to monitor and you're platform.
I use Hyperic and am largely happy
OpenNMS I also looked at, same with Nagios, I'd suggest dowbnloading the 3 of them, or doing a little reading about them, and then picking one and going for it. Hyperic in my opinion was a lot easier to get implemented than Nagios, OpenNMS I didn't try for my self. Those 3 are as far as I know it the big open source monitorring solutions.

Resources