mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-26 21:22:16 +08:00 
			
		
		
		
	* build: k8s improve. * refactor: update docker image contents. * rename seq file. * build: update k8s origin deploys. * update check logic. * update magefile * update image name. * update readme * update Kubernetes Discovery. * revert pkg. * update create in k8s * update service image release CI. * update deployment image source. * update mage contents. * update pkg source. * update go get pkg. * fix test file. * update discovery register. * update * update deploy yaml. * update replica. * update deployment. * remove notfication config. * remove notification and zookeeper. * update discovery in kubernetes. * build: improve kubernetes deployment. * update config field in discovery. * update ReadMe in deployments. * update go mod. * update const quote. * fix test fields. * remove unused method. * remove unused contents.
		
			
				
	
	
		
			22 lines
		
	
	
		
			440 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			440 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| //go:build mage && !windows
 | |
| // +build mage,!windows
 | |
| 
 | |
| package main
 | |
| 
 | |
| import (
 | |
| 	"syscall"
 | |
| 
 | |
| 	"github.com/openimsdk/gomake/mageutil"
 | |
| )
 | |
| 
 | |
| func setMaxOpenFiles() error {
 | |
| 	var rLimit syscall.Rlimit
 | |
| 	err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &rLimit)
 | |
| 	if err != nil {
 | |
| 		return err
 | |
| 	}
 | |
| 	rLimit.Max = uint64(mageutil.MaxFileDescriptors)
 | |
| 	rLimit.Cur = uint64(mageutil.MaxFileDescriptors)
 | |
| 	return syscall.Setrlimit(syscall.RLIMIT_NOFILE, &rLimit)
 | |
| }
 |