What is the correct way to install Celery/Redis to run the tasks on another server? - redis

The web server itself runs django. I would like the web server to delegate the actual tasks work to another server.

First, setup your redis server on the remote server. Change your django configuration to connect to this server.
When you deploy your app, I recommend using fabric to deploy to your web server and your worker server. It should handle the restart logic as well.

Related

Connect local SQL Server database from the containerized Asp.net Core Application

I have a very simple "hello world" kind Asp.net Core API Application (swagger included) where I click one API Controller and it fetches the data from the database and returns as JSON. I have tested that working on my system through the debugger and it all good to go inside docker.
I have created a docker file (not docker compose) and build the image finally run the docker container and checked the application is indeed accessible. However, the API Controller which fetches the data from the database, that endpoint failed.
I have tried all possible options like
https://medium.com/#vedkoditkar/connect-to-local-ms-sql-server-from-docker-container-9d2b3d33e5e9
How do I connect the local SQL Server database for the ASP.NET Core application running inside either local Docker or Kubernetes?
I have the latest docker version (20.10.2, build 2291f61) which supports host.docker.internal and that does not work either.
I have tried after disabling the firewall, have used the IP Address with port 1433, have used host.docker.internal and everywhere It gives same error to connect to the database.
Well, I tried to same IP Address and connect locally through SQL Management Studio and confirmed that I am doing any mistake in typo for username, password or SQL server, and database.
I am having an asp.net core API application where the connection strings store under appsettings.json.
None of the suggested approaches is working. Any different option/ clue?
Try to run the container in with host network
docker run --network host myimagename myappcontainer
This way myappcontainer will be able to access the mssql running on your machine.

Executing a ping from a remote server

Using VS 2015 and VB.net.
I have a web application and I want to execute a ping from a remote server. The server is running windows Server R2 2012.
The server has a router connected to it that goes to sleep periodically and at the moment we log in to the server and start a ping to the router to wake it up. The web application will be accessed by various users and on a button click the ping would start. The web application is hosted on our web server (not the remote server) and the ping must come from the remote server as the IP address of the router is local to the remote server and not visible to ping from anywhere else.
From my application I want to do this in code but I don't know where to start (been searching for a while).
I am not asking for the code I just want to know what I should be looking at.
using a scheduled task as #Nkosi pointed in his comment is not a bad idea, but the most professional and stable way is to write a windows Service that will handle this task. a service is different than a process, its always runs on the background and NT User is not have to be logged in. you can setup timers to schedule the pinging inside the service application. Creating a Windows Service Application

IBM Mobile First Direct Update from local machine

I am working on a project in IBM MobileFirst. My question is regarding Direct Update.
Is it possible to receive direct update if I build/deploy my application from one machine to Mobile and point the server that is in another machine (Production machine)?
If not what should I do to receive Direct Update from Production machine.
Thanks in advance.
Your application can point to any MobileFirst Server you want, as long as that server has the application's .wlapp file deployed on it in order to register the application there (assuming also the server is properly configured to serve that application (adapters, authenticationConfig.xml, etc).
You can then deployed updated .wlapp files to that server, and it'll serve Direct Updates to registered applications.

Configure Remote Access on Windows 2012 Server without IIS

I am running through the procedure to create a Windows 2012 Server, and I need Remote Access enabled. However, when I run through the installation process, it tells me I need to install IIS. Well I don't want IIS because I will have an Apache server running, but I have no choice. In Windows Server 2008 there was no need to install IIS when configuring Remote Access ( which used to be a part of Network Policy and Access Services ).
What can I do if I need Remote Access, need Apache, and don't want IIS?
To solve this I simply deleted the default website created with IIS, restarted Apache and it works fine.

how to IIS service start automatically?

Each time when i start my server , i need to go to IIS and then need to start the each web application manually. i want to start all web application automatic as my server starts. You will wonder why I m shuts down my server again and again. But it is test server. so that only. anyway. which service have to make automatic? It is Windows Server 2003. using IIS V6.0
Check if the iis service is set to start automatically. For this go to the Services MMC and ensure that the World Wide Web Publishing Service is set to start automatically. If there are no problem with the sites, they should start automatically. Also check here: http://www.eggheadcafe.com/software/aspnet/30451499/how-to-set-default-web-s.aspx
IIS(Microsoft web server) server are mostly installed in windows operating system(OS) ,we want to just start a service only,if iis server not installed then easily download and install in windows.
For More Reference