Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple tasks in one group supported? #62

Open
tfrijsewijk opened this issue Mar 18, 2022 · 2 comments
Open

Multiple tasks in one group supported? #62

tfrijsewijk opened this issue Mar 18, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@tfrijsewijk
Copy link

I'm trying to deploy an application that consists of two IIS applications. I want them on the same host, so I grouped them. It looks like there is a racing condition going on: One site is created with configuration of one task, but the configuration is swiftly replaced by the other configuration of the other task.

So does the IIS driver support multple win_iis tasks in the same group?

@Vulfox
Copy link
Contributor

Vulfox commented Mar 18, 2022

This definitely appears to be a bug from your statement. Mind giving me an example nomad job spec and I can find some time to add it to the list of tests the driver should do and see if I can reproduce.

@Vulfox Vulfox added the bug Something isn't working label Mar 18, 2022
@tfrijsewijk
Copy link
Author

job "multiple-tasks" {
  datacenters = ["dc1"]
  type = "service"

  group "group" {
    count = 1

    network {
      port "http" {
        static = 80
      }
    }

    restart {
      attempts = 10
      interval = "5m"
      delay = "25s"
      mode = "delay"
    }

    task "one" {
      driver = "win_iis"

      config {
        path = "C:\\inetpub\\wwwroot"

        bindings {
          type = "http"
          hostname = "one.localhost"
          port = "http"
        }
      }
    }

    task "two" {
      driver = "win_iis"

      config {
        path = "C:\\inetpub\\wwwroot2"

        bindings {
          type = "http"
          hostname = "two.localhost"
          port = "http"
        }
      }
    }
  }
}

image

image

The job spec above gives me one Application pool and one Web site. Like I said, I briefly get a binding to one.localhost which in turn becomes a binding to two.localhost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants